nvnn 发表于 2020-2-24 08:22
Hi, pytorch version is 1.2.0. However still has some problem converting resnet18.pt
resnet18.pt **** ...
jefferyzhang 发表于 2020-2-24 17:20
The resnet18 of torchvision version does't have softmax layer, aten::softmax is written by yoursel ...
- def export_pytorch_model():
- net = models.resnet18(pretrained=True)
- net.eval()
- trace_model = torch.jit.trace(net, torch.Tensor(1,3,224,224))
- trace_model.save('./resnet18.pt')
复制代码
jefferyzhang 发表于 2020-2-26 08:37
Can the version 1.3.1beta fix this problem?
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |