Can i quantize sigmoid activation (to QLinearSigmoid for example) in dynamic quantization? #19139
Labels
quantization
issues related to quantization
stale
issues that have not been addressed in a while; categorized by a bot
[Enter feedback here]
Since i am trying to quantize efficientnet using both static and dynamic methods, then i realize that only the static one quantize sigmoid activation into:
QuantizeLinear -> QlinearSigmoid_
But when i am trying to quantize using dynamic method, it turned out that sigmoid function cannot be quantized in default. As i read in quantize.py code, I cannot specify quant_format in DynamicQuantConfig, which seems lead to the above observation.
I wander what did i miss? Is there any reason why sigmoid cannot be quantized in dynamic method?
Thanks in advance
Document Details
The text was updated successfully, but these errors were encountered: