Closed buzhou1 closed 1 year ago
this is my onnx and the error
line 645, in replace_expand_to_intexpand init = model.inits[scale] KeyError: '2861'
This issue has not received any updates in 120 days. Please reply to this issue if this still unresolved!
I try to use advanced ptq according to example file(imagenet) but it cant convert to deploy because model.inits didn't realize the node named number only like the picture. How to solve ` if opt.quantize: prepare_custom_config_dict= { 'extra_qconfig_dict':{'w_observer': 'MinMaxObserver', 'a_observer': 'EMAMinMaxObserver', 'w_fakequantize': 'AdaRoundFakeQuantize', 'a_fakequantize': 'PACTFakeQuantize'},
} reconstruction={ 'pattern': 'block', 'scale_lr': 4.0e-5, 'warm_up': 0.2, 'weight': 0.01, 'max_count': 20000, 'b_range': [20,2], 'keep_gpu': True, 'round_mode': 'learned_hard_sigmoid', 'prob': 0.5, }