Skip to content

Commit

Permalink
Fix bug when layer has 'branch' in name (#3148)
Browse files Browse the repository at this point in the history
Fix bug when layer has 'branch' in name

Signed-off-by: Michael Tuttle <quic_mtuttle@quicinc.com>
  • Loading branch information
quic-mtuttle committed Jul 7, 2024
1 parent 8983229 commit 76b0677
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def _map_quantizers_to_ops(self) -> Dict[str, OpToQuantizers]:
and output quantizers of an op
"""
op_to_quantizers = {}
for name, op in self._conn_graph.get_all_ops().items():
if 'branch' in name:
continue
for _, op in self._conn_graph.get_all_ops().items():
node = op.get_module()
if node is None:
continue
op_to_quantizers[node.name] = OpToQuantizers()
for input_product in node.input:
self._populate_input_and_param_quantizer(op_to_quantizers[node.name], input_product)
Expand Down

0 comments on commit 76b0677

Please sign in to comment.