Skip to content

Can i quantize sigmoid activation (to QLinearSigmoid for example) in dynamic quantization? #19139

@mattam301

Description

@mattam301

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    quantizationissues related to quantizationstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions