Skip to content

Commit

Permalink
fix test values
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 19, 2024
1 parent c399e9b commit 170ef90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/brevitas/core/test_standalone_scaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_scaling_state_dict():

@torch.no_grad()
def test_scaling_min_val_runtime():
scaling_min_val = torch.tensor(1e-6)
scaling_min_val = 1e-6
scaling_op = ParameterFromRuntimeStatsScaling(
collect_stats_steps=1,
scaling_stats_impl=AbsMax(),
Expand All @@ -38,7 +38,7 @@ def test_scaling_min_val_runtime():
@torch.no_grad()
def test_scaling_min_val_param():
inp = torch.zeros(1, 5)
scaling_min_val = torch.tensor(1e-6)
scaling_min_val = 1e-6
scaling_op = ParameterFromStatsFromParameterScaling(
scaling_stats_impl=AbsMax(),
scaling_min_val=scaling_min_val,
Expand Down

0 comments on commit 170ef90

Please sign in to comment.