pytorch / 2 / generated / torch.tensor.q_per_channel_axis.html

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.

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