I want to my pretrained resnet32.pth to resnet32.wts for quantization
resnet50.pth provided by torchvision
net = torch.load(‘resnet50.pth’)
net = net.to(‘cuda:0’)
…
is working but resnet32.pth that i trained by me isn’t working
net = torch.load(‘resnet32.pth’)
net = net.to(‘cuda:0’)
…
AttributeError: ‘collections.OrderedDict’ object has no attribute ‘to’
resnet50.pth is resnet and resnet32.pth is ordereddict so i want to change resnet32.pth to resnet