Skip to content

Commit

Permalink
Fix: changed other.tensor -> other.value
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfraser committed Dec 20, 2023
1 parent f7bf410 commit aa31c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/quant_tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def __sub__(self, other):

def __truediv__(self, other):
if isinstance(other, QuantTensor) and self.is_not_none and other.is_not_none:
output_tensor = self.value / other.tensor # Note, output tensor not guaranteed to pass self.is_valid()
output_tensor = self.value / other.value # Note, output tensor not guaranteed to pass self.is_valid()
max_int_denominator = 2 ** (other.bit_width - int(other.signed))
output_scale = self.scale / (other.scale * max_int_denominator)
output_bit_width = self.bit_width + other.bit_width
Expand Down

0 comments on commit aa31c18

Please sign in to comment.