Skip to content

Commit

Permalink
fix for tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Dec 18, 2024
1 parent 8775ca2 commit d7b5036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/proxy/runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def create_quant_tensor(
qt_args: Union[Tensor, Tuple[Any]],
x: Optional[IntQuantTensor] = None) -> IntQuantTensor:

if x is None:
if isinstance(qt_args, tuple):
out = IntQuantTensor(*qt_args, self.is_signed, self.training)
else:
out = IntQuantTensor(
Expand Down

0 comments on commit d7b5036

Please sign in to comment.