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 d5936a2 commit 7c5c374
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 providers[0] == "TensorrtExecutionProvider"):
elif (isinstance(providers[i], tuple) and providers[i][0] == "TensorrtExecutionProvider"):

Check warning

Code scanning / lintrunner

RUFF/W291 Warning

Trailing whitespace.
See https://beta.ruff.rs/docs/rules/
C.register_tensorrt_plugins_as_custom_ops(session_options, providers[i][1])

class IOBinding:
Expand Down

0 comments on commit 7c5c374

Please sign in to comment.