Skip to content

Commit

Permalink
Replace the exception with a warning (#2901)
Browse files Browse the repository at this point in the history
### Changes

- Remove the exception that was added in
#2802

### Reason for changes

- Regression

### Related tickets

-148270
-149401

### Tests

Current scope
  • Loading branch information
andrey-churkin authored Aug 22, 2024
1 parent 3bda8f2 commit a8c5ea4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nncf/quantization/algorithms/min_max/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,13 @@ def _get_activation_quantization_target_point(
node = nncf_graph.get_node_by_name(node_name)
unique_output_port_ids = set(e.output_port_id for e in nncf_graph.get_output_edges(node))
if len(unique_output_port_ids) > 1:
raise nncf.InternalError(f"Cannot determine the output_port_id for the operation: {node_name}")
output_port_id = next(iter(unique_output_port_ids))
nncf_logger.warning(
f"Cannot determine the output_port_id for the operation: {node_name}, "
"output_port_id = 0 will be used."
)
output_port_id = 0
else:
output_port_id = next(iter(unique_output_port_ids))

activation_quantization_target_point = self._backend_entity.target_point(
TargetType.POST_LAYER_OPERATION, node_name, output_port_id
Expand Down

0 comments on commit a8c5ea4

Please sign in to comment.