Skip to content

Questions about the ‘optimize.torch.quantification’ qat mechanism #1938

@Feynman1999

Description

@Feynman1999

❓Question

According to my understanding, coremltools.optimize.torch.quantification encapsulates the official quantification of torch (as an extension of FX Graph Mode Quantization in PyTorch).
My question is, must I use the coremltools API for qat training? Can I use the PyTorch's API directly to complete qat and convert it to an mlmodel?
In other words, what specific operations were done by coremltools.optimize.torch when completing qat for coreml package?
(I am still a newbie in quantification. Thank you for your guidance)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionResponse providing clarification needed. Will not be assigned to a release. (type)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions