m = torch.load(’./modell.pth’, map_location=lambda storage, loc: storage)
Export the trained model to ONNX
dummy_input = Variable(torch.randn(1, 3, 100, 100))
torch.onnx.export(m(), dummy_input, “./models/ONNNNX.onnx”)
I am getting the error :
File “convert.py”, line 28, in 
torch.onnx.export(m(), dummy_input, “./models/ONNNNX.onnx”)
File “/home/surya/myenv/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 493, in call
result = self.forward(*input, **kwargs)
File “/home/surya/myenv/lib/python3.6/site-packages/torch/nn/modules/module.py”, line 88, in forward
raise NotImplementedError
NotImplementedError