Skip to content

Commit

Permalink
fix metric in lp search test
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 78c0b9e commit ecc4e84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MockMixedPrecisionSearchManager:
def __init__(self, layer_to_kpi_mapping):
self.layer_to_bitwidth_mapping = {0: [0, 1, 2]}
self.layer_to_kpi_mapping = layer_to_kpi_mapping
self.compute_metric_fn = lambda x, y=None, z=None: 0
self.compute_metric_fn = lambda x, y=None, z=None: {0: 2, 1: 1, 2: 0}[x[0]]
self.min_kpi = {KPITarget.WEIGHTS: [[1], [1], [1]],
KPITarget.ACTIVATION: [[1], [1], [1]],
KPITarget.TOTAL: [[2], [2], [2]],
Expand Down

0 comments on commit ecc4e84

Please sign in to comment.