PerTensor¶ class torch.ao.quantization.observer.PerTensor[source][source]¶ 表示量化中的按张量粒度。 这种粒度类型根据整个张量计算量化参数。