Shortcuts

torch.Tensor.int_repr

Tensor.int_repr() 张量

给定一个量化的张量, self.int_repr() 返回一个以 uint8_t 作为数据类型的 CPU 张量,该张量存储了给定张量的底层 uint8_t 值。

优云智算