评价此页

torch.Tensor.char#

Tensor.char(memory_format=torch.preserve_format) Tensor#

self.char() 等同于 self.to(torch.int8)。参见 to()

参数

memory_format (torch.memory_format, optional) – 返回的 Tensor 的所需内存格式。默认值:torch.preserve_format