Skip to content

Commit

Permalink
added default None
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 1, 2024
1 parent b15e2db commit a13b41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/core/stats/stats_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(
self.stats = _Stats(stats_impl, stats_output_shape)

@brevitas.jit.script_method
def forward(self, x: Optional[torch.Tensor]) -> torch.Tensor:
def forward(self, x: Optional[torch.Tensor] = None) -> torch.Tensor:
stats_input = self.first_tracked_param(x)
if self.extra_tracked_params_list is not None:
for extra_tracked_param in self.extra_tracked_params_list:
Expand Down

0 comments on commit a13b41b

Please sign in to comment.