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 57b24fa commit 543c2caCopy full SHA for 543c2ca
modelopt/onnx/quantization/graph_utils.py
@@ -35,6 +35,7 @@
35
find_lowest_common_ancestor,
36
get_child_nodes,
37
get_parent_nodes,
38
+ infer_shapes,
39
parse_shapes_spec,
40
save_onnx,
41
)
@@ -1088,7 +1089,7 @@ def _exclude_matmuls_by_shape_inference(
1088
1089
for dim, new_dim_value in zip(tensor_shape, input_shape):
1090
dim.dim_value = new_dim_value
1091
- model = onnx.shape_inference.infer_shapes(model)
1092
+ model = infer_shapes(model)
1093
value_info_map = {vi.name: vi for vi in model.graph.value_info}
1094
1095
nodes_to_exclude = []
0 commit comments