Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chilo-ms committed Sep 19, 2023
1 parent 83eea74 commit d5936a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/python/onnxruntime_inference_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def _register_ep_custom_ops(self, session_options, providers, provider_options):
for i in range(len(providers)):
if providers[i] == "TensorrtExecutionProvider":
C.register_tensorrt_plugins_as_custom_ops(session_options, provider_options[i])
elif (isinstance(providers[i], tuple) and provider[0] == "TensorrtExecutionProvider"):
elif (isinstance(providers[i], tuple) and providers[0] == "TensorrtExecutionProvider"):
C.register_tensorrt_plugins_as_custom_ops(session_options, providers[i][1])

class IOBinding:
Expand Down

0 comments on commit d5936a2

Please sign in to comment.