Skip to content

Question about INT8 quantization ranges #1951

@yeliang2258

Description

@yeliang2258

Hi, I have two questions and I am looking forward to replying:

  1. it is written in the file that the activation value will be quantized to -128~127, then when I set tensor->setDynamicRange(min_float, max_float), if the value of tensor is less than min_float, is it quantized to -128?
  2. If you need to use the QuantizeLinear OP in ONNX to express this quantization relationship, how should scale and zero be set? That is, how do I convert implicit quantization like tensor->setDynamicRange(min_float, max_float) to explicit quantization?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue has been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions