Skip to content

Commit

Permalink
JIT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 8, 2024
1 parent 0297e87 commit 1f71497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/core/scaling/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def training_forward(self, stats_input: Tensor, threshold: torch.Tensor) -> Tens
return abs_binary_sign_grad(self.clamp_scaling(self.restrict_scaling(value)))
else:
threshold = self.restrict_preprocess(threshold)
value = self.restrict_scaling_impl.combine_stats_threshold(value, threshold)
value = self.restrict_scaling_impl.combine_stats_threshold(self.value, threshold)
return abs_binary_sign_grad(self.clamp_scaling(self.restrict_scaling(value)))

@brevitas.jit.script_method
Expand Down

0 comments on commit 1f71497

Please sign in to comment.