Skip to content

Commit

Permalink
Update ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Oct 7, 2024
1 parent 3655ae8 commit 94b8f70
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/brevitas/function/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ def min_int(signed: bool, narrow_range: bool, bit_width: Tensor) -> Tensor:
return value


def max_mantissa_func(val):
return torch.sum((2. ** torch.arange(0, -1. * val - 1., -1.)))


@brevitas.jit.ignore
def max_float(exponent_bit_width: Tensor, mantissa_bit_width: Tensor, exponent_bias: Tensor):
max_exponent = (2. ** exponent_bit_width) - 1. - exponent_bias
Expand Down

0 comments on commit 94b8f70

Please sign in to comment.