Skip to content

Commit

Permalink
fix the version which starts to support infer_shapes_path (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwchen authored Jan 19, 2021
1 parent dd5f259 commit 09827b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxconverter_common/float16.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def convert_float_to_float16_model_path(model_path, min_positive_val=1e-7, max_f
'''

disable_shape_infer = False
if onnx.__version__ >= '1.7':
if onnx.__version__ >= '1.8':
try:
# infer_shapes_path can be applied to all model sizes
from onnx.shape_inference import infer_shapes_path
Expand Down

0 comments on commit 09827b5

Please sign in to comment.