Files
openvino/model-optimizer/extensions/ops/mxreshape.py
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

25 lines
604 B
Python

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.graph.graph import Graph
from mo.ops.op import Op
class MXReshape(Op):
'''
The is internal op which use for resolving different reshape mxnet cases
'''
op = 'MXReshape'
enabled = False
def __init__(self, graph: Graph, attrs: dict):
super().__init__(graph, {
'op': self.op,
'type': None,
'dim': None,
'reverse': False,
'in_ports_count': 2,
'out_ports_count': 1,
'infer': None,
}, attrs)