Skip to content

[Realy][Frontend][TLite] Issue in Quantized PadV2 support with constant input. #6791

@ANSHUMAN87

Description

@ANSHUMAN87

In Tensorflow version > 2.1.0, there is a bug induced in Tensorflow, where if we try to use Quantized PadV2 with constant value input, it fails to covert to TFLite because of mismatch in output quant params & the constant value quant params.

Pseudo code:
quant_output = pad_v2(quant_data, padding, mode="CONSTANT", quant_constant_values)

Error:
RuntimeError: tensorflow/lite/kernels/pad.cc:205 op_context.output->params.zero_point != op_context.constant_values->params.zero_point (128 != 0)

For test case, please refer

This is a tracker until bug is fixed in Tensorflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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