W3cubDocs

/PyTorch 2.9

torch.Tensor.q_per_channel_axis

Tensor.q_per_channel_axis() → int

Given a Tensor quantized by linear (affine) per-channel quantization, returns the index of dimension on which per-channel quantization is applied.

© 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_axis.html