Skip to content

Commit

Permalink
Set providers for ORT inference session (NVIDIA#5903)
Browse files Browse the repository at this point in the history
Signed-off-by: athitten <abhishreetm@gmail.com>
Signed-off-by: Jason <jasoli@nvidia.com>
  • Loading branch information
athitten authored and blisc committed Feb 10, 2023
1 parent feabe97 commit 251e117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/asr/ASR_with_NeMo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@
"\n",
"quartznet.export('qn.onnx')\n",
"\n",
"ort_session = onnxruntime.InferenceSession('qn.onnx')\n",
"ort_session = onnxruntime.InferenceSession('qn.onnx', providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'])\n",
"\n",
"with tempfile.TemporaryDirectory() as tmpdir:\n",
" with open(os.path.join(tmpdir, 'manifest.json'), 'w') as fp:\n",
Expand Down Expand Up @@ -1172,4 +1172,4 @@
"outputs": []
}
]
}
}

0 comments on commit 251e117

Please sign in to comment.