Files
openvino/model-optimizer/extensions/front/onnx/range_ext.py
T
Alexey Suhov 6478f1742a Align copyright notice in python scripts (CVS-51320) (#4974)
* Align copyright notice in python scripts (CVS-51320)
2021-03-26 17:54:28 +03:00

19 lines
473 B
Python

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from extensions.ops.range import Range
from mo.front.extractor import FrontExtractorOp
from mo.graph.graph import Node
class RangeFrontExtractor(FrontExtractorOp):
op = 'Range'
enabled = True
@classmethod
def extract(cls, node: Node):
# output_type attribute will be deduced during shape infer
Range.update_node_stat(node, {})
return cls.enabled