PandA-2024.02
examples
onnx
i4_googlenet
download_convert.py
Go to the documentation of this file.
1
import
torch
2
3
model = torch.hub.load(
'pytorch/vision:v0.4.2'
,
'googlenet'
, pretrained=
True
)
4
5
dummy_input = torch.randn(1,3,224,224)
6
7
torch.onnx.export(model, dummy_input,
"i4_googlenet.onnx"
)
8
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13