Skip to content

Commit

Permalink
better check?
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Aug 16, 2024
1 parent ac98fc2 commit 0f4225b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/brevitas/proxy/quant_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ def __init__(self, quant_layer: nn.Module, quant_injector: Injector) -> None:
self.tracked_module_list = []
self.add_tracked_module(quant_layer)
self.disable_quant = False
self.is_zero_zero_point = type(
self.quant_injector.zero_point_impl
) is ZeroZeroPoint if 'zero_point_impl' in self.quant_injector else False
self.is_zero_zero_point = False
for m in self.modules():
if isinstance(m, ZeroZeroPoint):
self.is_zero_zero_point = True
self.is_signed = self.quant_injector.signed if 'signed' in quant_injector else None

@property
Expand Down

0 comments on commit 0f4225b

Please sign in to comment.