torch.Tensor.chalf
- Tensor.chalf(memory_format=torch.preserve_format) → Tensor
self.chalf()is equivalent toself.to(torch.complex32). See .
self.chalf() is equivalent to self.to(torch.complex32). See .
to()memory_format (torch.memory_format, optional) – the desired memory format of
returned Tensor. Default: torch.preserve_format.