Skip to content

Commit d27a7f3

Browse files
Merge branch 'dl/conv_layer_attrs_update' into dl/quantization/passes_for_splitted_graphs
2 parents 6bc2f86 + 3fb5f9a commit d27a7f3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

nncf/openvino/graph/layer_attributes.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ def get_backend_agnostic_attributes(self):
8080
]
8181

8282

83-
OVConvLayout = List[OVLayoutElem]
84-
85-
86-
def get_conv_weights_layout_from_node(node: NNCFNode) -> OVConvLayout:
83+
def get_conv_weights_layout_from_node(node: NNCFNode) -> List[OVLayoutElem]:
8784
"""
8885
Calculates weights layout for a target convolution node.
8986
@@ -97,7 +94,7 @@ def get_conv_weights_layout_from_node(node: NNCFNode) -> OVConvLayout:
9794
)
9895

9996

100-
def get_linear_weights_layout_from_node(node: NNCFNode) -> OVConvLayout:
97+
def get_linear_weights_layout_from_node(node: NNCFNode) -> List[OVLayoutElem]:
10198
"""
10299
Calculates weights layout for a target linear node.
103100
@@ -126,7 +123,7 @@ def _get_constant_port_id_from_layer_attributes(layer_attributes: OVLayerAttribu
126123
return port_ids[0]
127124

128125

129-
def get_conv_weights_layout(ov_metatype: OVOpMetatype, weights_shape: Tuple[int, ...]) -> OVConvLayout:
126+
def get_conv_weights_layout(ov_metatype: OVOpMetatype, weights_shape: Tuple[int, ...]) -> List[OVLayoutElem]:
130127
"""
131128
Calculates weights layout for a target convolution node.
132129
@@ -140,7 +137,7 @@ def get_conv_weights_layout(ov_metatype: OVOpMetatype, weights_shape: Tuple[int,
140137
return tuple(weights_layout)
141138

142139

143-
def get_linear_weights_layout(weights_shape: Tuple[int, ...], transpose: bool, port_id: int) -> OVConvLayout:
140+
def get_linear_weights_layout(weights_shape: Tuple[int, ...], transpose: bool, port_id: int) -> List[OVLayoutElem]:
144141
"""
145142
Calculates weights layout for a target linear node.
146143

0 commit comments

Comments
 (0)