Open LeonNerd opened 4 years ago
I have the same issue
But I don't know what a network model it is
Try to look in this tutorial.
The model is the complex of nn.Module layers. Weights usually save in state_dict() collection, so you need to create/load model architecture and load its state_dict with weights. After that, export to ONNX.
could you please share the code for converting it to onnx format?
I want to convert PTH to onnx, what should I do.torch.onnx need to import the network model and weights.But I don't know what a network model it is