We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7238e74 commit 9ef6766Copy full SHA for 9ef6766
optimum/intel/openvino/modeling_base.py
@@ -132,7 +132,11 @@ def fix_op_names_duplicates(model: openvino.runtime.Model):
132
133
if isinstance(file_name, str):
134
file_name = Path(file_name)
135
- model = core.read_model(file_name) if not file_name.suffix == ".onnx" else convert_model(file_name)
+ model = (
136
+ core.read_model(file_name.resolve(), file_name.with_suffix(".bin").resolve())
137
+ if not file_name.suffix == ".onnx"
138
+ else convert_model(file_name)
139
+ )
140
if file_name.suffix == ".onnx":
141
model = fix_op_names_duplicates(model) # should be called during model conversion to IR
142
0 commit comments