Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 5, 2024
1 parent 228f983 commit ae21bca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/brevitas/core/scaling/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def __init__(

@brevitas.jit.script_method
def forward(
self, x: Optional[torch.Tensor], threshold: Optional[torch.Tensor] = None) -> torch.Tensor:
self,
x: Optional[torch.Tensor],
threshold: Optional[torch.Tensor] = None) -> torch.Tensor:
stats = self.parameter_list_stats(x)
if threshold is None:
threshold = torch.ones(1).type_as(stats)
Expand Down

0 comments on commit ae21bca

Please sign in to comment.