OpenPPL / ppq

PPL Quantization Tool (PPQ) is a powerful offline neural network quantization tool.
Apache License 2.0
1.56k stars 236 forks source link

量化时出现RandomNormalLike这个算子没有注册跟实现的问题,请问有没有简单的注册实现例子可以参考? #527

Open Uwenisme opened 11 months ago

Uwenisme commented 11 months ago

/stylegan_decoder/style_conv1/RandomNormalLike(RandomNormalLike) has no backend implementation on target platform TargetPlatform.FP32. Register this op to ppq.executor.base.py and ppq.executor.op first

ZhangZhiPku commented 11 months ago

你似乎需要这个:https://github.com/openppl-public/ppq/blob/master/ppq/samples/custimized_quant.py