File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 4040from nncf .onnx .graph .onnx_helper import get_output_port_id_for_node_before_output
4141from nncf .onnx .graph .onnx_helper import get_parents_node_mapping
4242from nncf .onnx .graph .onnx_helper import is_node_has_shared_weight
43- from onnxruntime .tools .symbolic_shape_infer import SymbolicShapeInference
4443
4544
4645class 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 )
You can’t perform that action at this time.
0 commit comments