Files
openvino/model-optimizer/extensions/ops/dequantize_linear.py
iliya mironov 642a62d0e2 Add axis support (#5242)
* Add axis support

* Update dequant extractor

* Update qdeq ops

* Refactoring quantize

* Update dequantize resolver

* Update dequantize op

* Refactoring dequantize

* Some fixes for quantize and dequantize

* Update unit tests

* Reafctoring quantize/dequantize axis support

* Move quantize/dequantize resolvers to middle

* hot fix

* Fix unit tests

* Fix unit tests

* Update quintize resolver comment

* Refactoring code according to code review

* Fix according to review

* Change order for transforms quantize pipline
2021-05-17 15:03:22 +03:00

27 lines
704 B
Python

# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from mo.front.common.partial_infer.elemental import copy_shape_infer
from mo.graph.graph import Graph
from mo.ops.op import Op
class DequantizeLinear(Op):
op = 'DequantizeLinear'
enabled = False
def __init__(self, graph: Graph, attrs: dict):
mandatory_props = {
'type': None,
'op': self.op,
'axis': None,
'version': None,
'infer': copy_shape_infer,
'out_ports_count': 1,
'in_ports_count': 3,
}
super().__init__(graph, mandatory_props, attrs)
def supported_attrs(self):
return ['axis']