Skip to content

Commit

Permalink
fix metric again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofir Gordon authored and Ofir Gordon committed Mar 10, 2024
1 parent 008918a commit 78c0b9e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ def _build_layer_to_metrics_mapping(search_manager: MixedPrecisionSearchManager,
[node_idx],
search_manager.max_kpi_config)

layer_to_metrics_mapping[node_idx][bitwidth_idx] = max(metric_value,
layer_to_metrics_mapping[node_idx][bitwidth_idx-1] + eps)
layer_to_metrics_mapping[node_idx][bitwidth_idx] = max(metric_value, max_config_value + eps)

# Finalize distance metric mapping
search_manager.finalize_distance_metric(layer_to_metrics_mapping)
Expand Down

0 comments on commit 78c0b9e

Please sign in to comment.