torch.Tensor.q_per_channel_zero_points β PyTorch 2.7 documentation (original) (raw)
Tensor.q_per_channel_zero_points() β TensorΒΆ
Given a Tensor quantized by linear (affine) per-channel quantization, returns a tensor of zero_points of the underlying quantizer. It has the number of elements that matches the corresponding dimensions (from q_per_channel_axis) of the tensor.