Skip to content

Commit

Permalink
[converter] skip hybrid_quantize_weight_type check for non hybrid qua…
Browse files Browse the repository at this point in the history
…ntization (#362)
  • Loading branch information
peterjc123 authored Sep 30, 2024
1 parent ba14f63 commit 11948b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tinynn/converter/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def __init__(
elif hybrid_quantize_weight_type == 'int8':
self.hybrid_q_type = np.int8
elif hybrid_quantize_weight_type == 'int16':
raise AttributeError('Hybrid kernels supports int8 and uint8 only')
if self.hybrid:
raise AttributeError('Hybrid kernels supports int8 and uint8 only')

if dump_config_path and not dump_jit_model_path:
raise AssertionError("when dump_config_path is set, dump_jit_model_path is required to be set")
Expand Down

0 comments on commit 11948b4

Please sign in to comment.