Skip to content

Commit

Permalink
Minor PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofir Gordon authored and Ofir Gordon committed Mar 11, 2024
1 parent 4643017 commit 83a0081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def _add_set_of_kpi_constraints(search_manager: MixedPrecisionSearchManager,

def _build_layer_to_metrics_mapping(search_manager: MixedPrecisionSearchManager,
target_kpi: KPI,
eps: float = 1e-8) -> Dict[int, Dict[int, float]]:
eps: float = EPS) -> Dict[int, Dict[int, float]]:
"""
This function measures the sensitivity of a change in a bitwidth of a layer on the entire model.
It builds a mapping from a node's index, to its bitwidht's effect on the model sensitivity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from model_compression_toolkit.target_platform_capabilities.tpc_models.imx500_tpc.latest import \
get_op_quantization_configs
from tests.keras_tests.tpc_keras import get_weights_only_mp_tpc_keras
from pulp import *
from pulp import lpSum

class MockReconstructionHelper:
def __init__(self):
Expand Down

0 comments on commit 83a0081

Please sign in to comment.