You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(Ask) why InferInheritedType handle int8 to fp16 out? #844
Yes, some ops support int8 input and int8 output directlly.
However, we suggest the user to specify which ops use int8 precision via "quant.json". The rest of the operators will not save quant information and use float16 by default.
Activity
Si-XU commentedon Jul 20, 2023
Int8 type should be used combining with quant scale.
We strictly use function of UnifyToOutputQuant and CopyQuantType to deal with int8 inputs.
ppl.nn/src/ppl/nn/engines/cuda/optimizer/opt_kernel.h
This statement is just in case some operations forget to handle int8 inputs.
DeepTecher commentedon Jul 20, 2023
Okay. But why do we handle int8 input to fp16 input in the case that some operations forget to handle int8 inputs?
However, perhaps some ops may be not quant op, but support int8 input and int8 output. Like on Min/Max operation
Si-XU commentedon Jul 21, 2023
Yes, some ops support int8 input and int8 output directlly.
However, we suggest the user to specify which ops use int8 precision via "quant.json". The rest of the operators will not save quant information and use float16 by default.