Skip to content

Commit

Permalink
Fix producer check
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Jun 29, 2023
1 parent 075e428 commit a4f7cab
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions nncf/quantization/algorithms/channel_alignment/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,6 @@ def _check_consumer_conv_node(self, conv_node: NNCFNode) -> bool:
return False
return True

def _check_producer_conv_node(self, conv_node: NNCFNode):
attrs = self._backend_entity.get_conv_layer_attributes(conv_node)
if attrs is None:
return False
# Check groups amount == 1
if attrs.groups != 1:
return False
return True

def _get_target_patterns(self) -> GraphPattern:
input_attrs = {
GraphPattern.LABEL_ATTR: "INPUT",
Expand Down Expand Up @@ -333,9 +324,6 @@ def _get_node_pairs(self, nncf_graph: NNCFGraph) -> List[Tuple[NNCFNode, Optiona
else:
conv_in, add_in, conv_out = subgraph

if not self._check_producer_conv_node(conv_in):
continue

if not self._check_consumer_conv_node(conv_out):
continue

Expand Down

0 comments on commit a4f7cab

Please sign in to comment.