Skip to content

onnxruntime range check for relu output #590

@wangtiance

Description

@wangtiance

For relu op, setting QuantizationProperty as SYMMETRICAL and quant_min/quant_max to 0/255 and export the graph with platform=TargetPlatform.ONNXRUNTIME causes warning messages like this:

[Warning] Is it not safe to export TQC(/cnn/cnn.0/cnn.0.2/Relu_output_0) to Onnx, INT8 value range must be [-128, 127] or [0, 255], however [(0, 255)] was given.

But setting quant_min/quant_max to -128 and 127 leads to slightly worse quantization errors. Should relu output be set as ASYMMETRICAL? or should i just ignore these warning messages?

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