torch.Tensor.char¶
- Tensor.char(memory_format=torch.preserve_format) Tensor¶
self.char()等同於self.to(torch.int8)。參見to()。- 引數
memory_format (
torch.memory_format, 可選的) – 返回 Tensor 的所需記憶體格式。預設值:torch.preserve_format。
self.char() 等同於 self.to(torch.int8)。參見 to()。
memory_format (torch.memory_format, 可選的) – 返回 Tensor 的所需記憶體格式。預設值: torch.preserve_format。