Find the optimal scale for quantization with respect to the MSE loss x: (..., C), weight p: (P), shrinkage factors scale: (...), initial scale, modified in-place and returned qzero: (...), zero points maxq: () dtype: torch.dtype, target scale dtype, fp16 or bf16 norm
(
x: torch.Tensor,
p: torch.Tensor,
scale: torch.Tensor,
qzero: torch.Tensor,
maxq: torch.Tensor,
dtype: torch.dtype = None,
norm: float = 2.4,
)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected