1、代碼 model?? 可以看出model??后會把resnet34的代碼下載到d盤上了,以后改寫模型可以模仿一下。 2、具體看看model??后出大結構,我們直接打開.py文件 import torch
from torch import Tensor
import torch.nn as nn
from .utils import load_state_dict_from_url
f
RuntimeError:one of the variables needed for gradient computation has been modified by an inplace operation 原因:0.4.0把Varible和Tensor融合為一個Tensor,inplace操作,之前對Varible能用,但現在對Tensor,就會出錯了,所以找