Skip to content

Commit

Permalink
Fix for passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jan 8, 2024
1 parent 2f7f216 commit d606de9
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 @@ -158,7 +158,7 @@ def forward(self, x: Union[Tensor, QuantTensor]) -> QuantTensor:
if isinstance(y, tuple):
y = y[0]
if isinstance(x, QuantTensor):
return QuantTensor(
return QuantTensor.from_fake_quantized(
y, x.scale, x.zero_point, x.bit_width, x.signed, self.training)
else:
return y
Expand Down

0 comments on commit d606de9

Please sign in to comment.