openvino/model-optimizer/extensions/front/mxnet/shape_array_ext.py

17 lines
366 B
Python

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.front.extractor import FrontExtractorOp
from mo.ops.shape import Shape
class ShapeArrayExtractor(FrontExtractorOp):
op = 'shape_array'
enabled = True
@classmethod
def extract(cls, node):
Shape.update_node_stat(node, {})
return cls.enabled