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

Skip to content

Commit 1261747

Browse files
committed
Update the correctness verification and performance comparison tutorial
1 parent 2327ab9 commit 1261747

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tutorials/CorrectnessVerificationAndPerformanceComparison.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"from caffe2.python import core\n",
5050
"from torch.autograd import Variable\n",
5151
"from onnx_caffe2.backend import Caffe2Backend\n",
52-
"from onnx_caffe2.helper import c2_native_run_net, name_inputs, save_caffe2_net, load_caffe2_net, \\\n",
52+
"from onnx_caffe2.helper import c2_native_run_net, save_caffe2_net, load_caffe2_net, \\\n",
5353
" benchmark_caffe2_model, benchmark_pytorch_model\n",
5454
"\n",
5555
"\n",
@@ -231,7 +231,7 @@
231231
"pytorch_results = pytorch_model(*inputs)\n",
232232
"\n",
233233
"# Compute the results using the Caffe2 model.\n",
234-
"_, caffe2_results = c2_native_run_net(init_net, predict_net, name_inputs(onnx_model, caffe2_inputs))"
234+
"_, caffe2_results = c2_native_run_net(init_net, predict_net, caffe2_inputs)"
235235
]
236236
},
237237
{
@@ -282,8 +282,8 @@
282282
"name": "stdout",
283283
"output_type": "stream",
284284
"text": [
285-
"PyTorch model's execution time is 0.637650489807 milliseconds/ iteration, 1568.25724434 iterations per second.\n",
286-
"Caffe2 model's execution time is 0.43121188879 milliseconds / iteration, 2319.04552262 iterations per second\n"
285+
"PyTorch model's execution time is 0.580716133118 milliseconds/ iteration, 1722.011742 iterations per second.\n",
286+
"Caffe2 model's execution time is 0.399529695511 milliseconds / iteration, 2502.94286316 iterations per second\n"
287287
]
288288
}
289289
],

0 commit comments

Comments
 (0)