W3cubDocs

/PyTorch 2.9

torch.Tensor.q_per_channel_zero_points

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.

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.Tensor.q_per_channel_zero_points.html