Skip to content

Commit e40e627

Browse files
authored
Fix openvino export model from ONNX (#554)
1 parent 24a1e30 commit e40e627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/intel/openvino/modeling_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _cached_file(
227227
model_cache_path = model_path / file_name
228228
else:
229229
file_name = Path(file_name)
230-
if file_name.suffix != "onnx":
230+
if file_name.suffix != ".onnx":
231231
model_file_names = [file_name.with_suffix(".bin"), file_name]
232232
else:
233233
model_file_names = [file_name]

0 commit comments

Comments
 (0)