我自己照着老师的代码写了一遍有这个问题 所以我把loader块的和vgg块的函数直接copy老师仓库里的尝试了一遍还是有这个问题
NotImplementedError Traceback (most recent call last)
in ()
20 inputs, labels = inputs.to(device), labels.to(device)
21
—> 22 outputs = net(inputs)
23 loss = loss_func(outputs, labels)
24
1 frames
/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in _forward_unimplemented(self, *input)
173 registered hooks while the latter silently ignores them.
174 “”"
–> 175 raise NotImplementedError
176
177
NotImplementedError: