評價此頁

torch.dequantize#

torch.dequantize(tensor) Tensor#

透過對量化張量進行反量化,返回一個fp32張量。

引數

tensor (Tensor) – 一個量化後的 Tensor

torch.dequantize(tensors) sequence of Tensors

給定一個量化 Tensor 列表,將它們反量化並返回一個 fp32 Tensor 列表

引數

tensors (sequence of Tensors) – 一個量化 Tensor 列表