Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c80f4f4

Browse files
Shuolongbjprasanthpul
authored andcommitted
Update PytorchOnnxExport.ipynb (#18)
Update PytorchOnnxExport.ipynb
1 parent cad65f4 commit c80f4f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorials/PytorchOnnxExport.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"# Obtain your model, it can be also constructed in your script explicitly\n",
110110
"model = torchvision.models.alexnet(pretrained=True)\n",
111111
"# Invoke export\n",
112-
"torch.onnx.export(model, dummy_input, \"output/alexnet.onnx\")"
112+
"torch.onnx.export(model, dummy_input, \"alexnet.onnx\")"
113113
]
114114
},
115115
{
@@ -190,7 +190,7 @@
190190
"import onnx\n",
191191
"\n",
192192
"# Load the ONNX model\n",
193-
"model = onnx.load(\"output/alexnet.onnx\")\n",
193+
"model = onnx.load(\"alexnet.onnx\")\n",
194194
"\n",
195195
"# Check that the IR is well formed\n",
196196
"onnx.checker.check_model(model)\n",

0 commit comments

Comments
 (0)