Skip to content

how can i get the raw uint8 value from quantized tensor? #50724

@CaichaoGitHub

Description

@CaichaoGitHub

❓ i am custom my quantization module in python, after i convert the module to my int8 module

1、how can i get raw int8 value from quantized tensor passed in by forward ? ,the input x is a quantized tensor in float value pair with scale , zero point at purpose of quantization
2、how can i init a quantized uint8 tensor with my scale and zero point ?

image

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