Skip to content

Commit

Permalink
Fix for cache + decoupled weight quant
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Nov 28, 2024
1 parent 1bc7df9 commit 84c4309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brevitas/proxy/parameter_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def forward(
self._cached_act = cached_inp

if self.is_quant_enabled:
if quant_input is None:
if quant_input is None or isinstance(quant_input, Tensor):
assert self._cached_act is not None, "No cached quant input found. Enable caching and perform a forward pass"
quant_input = self._cached_act
else:
Expand Down

0 comments on commit 84c4309

Please sign in to comment.