Skip to content

Commit

Permalink
Fix (gpfa2q): extending error message details
Browse files Browse the repository at this point in the history
  • Loading branch information
i-colbert committed Mar 2, 2024
1 parent 6413c96 commit 935dd47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/brevitas/graph/gpfq.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ def __init__(
def single_layer_update(self):
# raise error in case no quant-input is here
if self.quant_input is None:
raise ValueError(
'Expected quant input to calculate L1-norm upper bound, but received None')
raise ValueError('Expected self.quant_input to calculate L1-norm upper bound, but recevied None. ' + \
'Check if `use_quant_activations=True` in `gpfq_mode` when `accumulator_bit_width` is specified. ' + \
'Alternatively, provide a custom `a2q_layer_filter_fnc` to `gpfq_mode` to filter layers without a quant_tensor input.')
weight = self.layer.weight.data
dev = weight.device
dtype = weight.dtype
Expand Down

0 comments on commit 935dd47

Please sign in to comment.