Shortcuts

torch.Tensor.q_zero_point

Tensor.q_zero_point() int

给定一个通过线性(仿射)量化得到的张量,返回底层量化器的zero_point。