Skip to content

Commit

Permalink
Fix for int property
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 3, 2023
1 parent 45b5de5 commit f7fe099
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 @@ -222,7 +222,7 @@ def contiguous(self):

def int(self, float_datatype=False):
if self.is_valid:
return self.value
return self.qt_value
else:
raise RuntimeError(f"QuantTensor not valid.")
# if self.is_valid:
Expand Down

0 comments on commit f7fe099

Please sign in to comment.