pytorch
ff3f1961 - Type conversion between float/complex dtypes (#97935)

Commit
2 years ago
Type conversion between float/complex dtypes (#97935) This PR is an implementation of the feature request https://github.com/pytorch/pytorch/issues/97888, for the implementation of `torch.dtype.to_complex()` and `torch.dtype.to_float()` methods that convert between float and complex dtypes of the same precision. Disclaimer: it's the first time I code in C++ so hopefully the code is correct, but I'm not super confident about the PR. Any advice/comment is welcome. It's also my first contribution to a large library, so hopefully I'm not doing anything wrong ! @ezyang Pull Request resolved: https://github.com/pytorch/pytorch/pull/97935 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading