Skip to content

The training framework of fixed point quantization. #10551

@qingqing01

Description

@qingqing01

Desgin

  • Add the Design doc

PRs:

C++

  • fake_quantize_op
    • calculate sliding maximum value for the dequantization range.
    • quantize implementation
  • fake_dequantize_op

PRs:

Python transpiler:

Requirement:

  • develop quantization transpiler to rewrite ProgramDesc to insert the fake_quantize_op and fake_dequantize_op.
    • Only insert the fake_quantize_op and fake_dequantize_op in the forward pass.
    • Do not change the inputs and outputs of the backward operator.
  • consider the batch-norm folding and quantization.

PRs:

Model verification.

  • Need to determine the baseline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions