Skip to content

Commit

Permalink
Fix openvino export model from ONNX (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Feb 7, 2024
1 parent 24a1e30 commit e40e627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/intel/openvino/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _cached_file(
model_cache_path = model_path / file_name
else:
file_name = Path(file_name)
if file_name.suffix != "onnx":
if file_name.suffix != ".onnx":
model_file_names = [file_name.with_suffix(".bin"), file_name]
else:
model_file_names = [file_name]
Expand Down

0 comments on commit e40e627

Please sign in to comment.