Skip to content

Commit 1f0d75c

Browse files
update
1 parent 96a483a commit 1f0d75c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/nncf/onnx/graph/nncf_graph_builder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
from nncf.onnx.graph.onnx_helper import get_output_port_id_for_node_before_output
4141
from nncf.onnx.graph.onnx_helper import get_parents_node_mapping
4242
from nncf.onnx.graph.onnx_helper import is_node_has_shared_weight
43-
from onnxruntime.tools.symbolic_shape_infer import SymbolicShapeInference
4443

4544

4645
class ONNXLayerAttributes(BaseLayerAttributes):
@@ -387,8 +386,7 @@ def create_nncf_graph(onnx_model: onnx.ModelProto) -> NNCFGraph:
387386
:return: NNCFGraph.
388387
"""
389388
onnx_model = GraphConverter._replace_empty_node_name(onnx_model)
390-
# onnx_model = onnx.shape_inference.infer_shapes(onnx_model)
391-
onnx_model = SymbolicShapeInference.infer_shapes(onnx_model)
389+
onnx_model = onnx.shape_inference.infer_shapes(onnx_model)
392390

393391
edge_info_mapping = get_edge_info_mapping(onnx_model)
394392
children_node_mapping = get_children_node_mapping(onnx_model)

0 commit comments

Comments
 (0)