pytorch报错系列(1)RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor)
在训练期间,运行如下代码
import torch
import torch.nn as nn
from lenet import LeNet, MyNet
from torchsummary import summary
net = LeNet(classes=2)
net.initialize_weights()
summary(net, input_size=(3, 32, 32))
报...
原创
2020-03-15 22:55:22 ·
2113 阅读 ·
1 评论