Skip to content

Commit

Permalink
Fix (quant_tensor): remove unused checks (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Mar 23, 2024
1 parent f0f8c56 commit 3f7a36f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/brevitas/quant_tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,6 @@ def __add__(self, other):
bit_width=output_bit_width,
signed=output_signed,
training=output_training)
elif isinstance(other, QuantTensor):
output = self.value + other.value
else:
output = self.value + other
return output
Expand Down Expand Up @@ -382,8 +380,6 @@ def __mul__(self, other):
bit_width=output_bit_width,
signed=output_signed,
training=output_training)
elif isinstance(other, QuantTensor):
output = self.value * other.value
else:
output = self.value * other
return output
Expand Down Expand Up @@ -413,8 +409,6 @@ def __truediv__(self, other):
bit_width=output_bit_width,
signed=output_signed,
training=output_training)
elif isinstance(other, QuantTensor):
output = self.value / other.value
else:
output = self.value / other
return output
Expand Down

0 comments on commit 3f7a36f

Please sign in to comment.