Skip to content

Commit

Permalink
Exclude concat layer for gpu quantization (apache#14060)
Browse files Browse the repository at this point in the history
* exclude concat for gpu quantization

* remove quantized_concat test in non-subgraph flow
  • Loading branch information
jitMatrix authored and vdantu committed Mar 31, 2019
1 parent a47e469 commit d57cfa8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/quantization/imagenet_gen_qsym.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ def save_params(fname, arg_params, aux_params, logger=None):
if args.ctx == 'gpu':
calib_layer = lambda name: name.endswith('_output') and (name.find('conv') != -1
or name.find('fc') != -1)
excluded_sym_names += ['ch_concat_3a_chconcat',
'ch_concat_3b_chconcat',
'ch_concat_3c_chconcat',
'ch_concat_4a_chconcat',
'ch_concat_4b_chconcat',
'ch_concat_4c_chconcat',
'ch_concat_4d_chconcat',
'ch_concat_4e_chconcat',
'ch_concat_5a_chconcat',
'ch_concat_5b_chconcat']
else:
calib_layer = lambda name: name.endswith('_output') and (name.find('conv') != -1)
excluded_sym_names += ['flatten', 'fc1']
Expand Down

0 comments on commit d57cfa8

Please sign in to comment.