Skip to content

Commit

Permalink
Merge pull request #969 from roboflow/supporess-onnx-providers-warning
Browse files Browse the repository at this point in the history
Suppress ONNX providers warning
  • Loading branch information
grzegorz-roboflow authored Jan 22, 2025
2 parents af73997 + f2d05cc commit 491859b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inference/core/models/roboflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ def initialize_model(self) -> None:
providers = ["OpenVINOExecutionProvider", "CPUExecutionProvider"]
try:
session_options = onnxruntime.SessionOptions()
session_options.log_severity_level = 3
# TensorRT does better graph optimization for its EP than onnx
if has_trt(providers):
session_options.graph_optimization_level = (
Expand Down

0 comments on commit 491859b

Please sign in to comment.