Skip to content

Commit

Permalink
fix custom layer test
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 b4086fc commit 8013914
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def test_custom_layer(self):

core_config = mct.core.CoreConfig(
mixed_precision_config=mct.core.MixedPrecisionQuantizationConfig(
use_hessian_based_scores=False))
use_hessian_based_scores=False,
target_kpi=mct.core.KPI(weights_memory=6000)))
q_model, _ = mct.ptq.keras_post_training_quantization(model,
get_rep_dataset(2, (1, 8, 8, 3)),
core_config=core_config,
target_kpi=mct.core.KPI(weights_memory=6000))
core_config=core_config)

# verify the custom layer is in the quantized model
self.assertTrue(isinstance(q_model.layers[-1], SSDPostProcess), 'Custom layer should be in the quantized model')
Expand Down

0 comments on commit 8013914

Please sign in to comment.