W3cubDocs

/PyTorch 2.9

PerTensor

class torch.ao.quantization.observer.PerTensor [source]

Represents per-tensor granularity in quantization.

This granularity type calculates the quantization parameters based off the entire 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.ao.quantization.observer.PerTensor.html