Skip to content

Commit

Permalink
Set providers for ORT inference session (#5903)
Browse files Browse the repository at this point in the history
Signed-off-by: athitten <[email protected]>
  • Loading branch information
athitten authored Feb 1, 2023
1 parent c20ab19 commit ef23911
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 ef23911

Please sign in to comment.