Skip to content

Commit

Permalink
Fix (a2q+): adding JIT decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colbert committed Jan 23, 2024
1 parent dafedb9 commit 4db00bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brevitas/core/zero_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def __init__(
self.stats_output_shape = pre_zero_point_shape
self.stats_input_view_shape_impl = pre_zero_point_stats_input_view_shape_impl

@brevitas.jit.script_method
def get_zero_center(self, x: Tensor) -> Tensor:
x = self.stats_input_view_shape_impl(x)
u = torch.mean(x, axis=self.stats_reduce_dim, keepdim=True)
Expand Down

0 comments on commit 4db00bc

Please sign in to comment.