CPU-strided-complex support for ComplexFloat (#29294)
Summary:
Re-submit of https://github.com/pytorch/pytorch/issues/29133
In-tree changes to pytorch to support complex numbers are being submitted here.
Out-of-tree support for complex numbers is here: [pytorch-cpu-strided-complex extension](https://gitlab.com/pytorch-complex/pytorch-cpu-strided-complex)
Changes
- [x] Fixed Vec256 Permute operations for Complex Float
- [x] Fixed copy_kernel_cast between complex data types
- copy_kernel_cast should not call std::real during inter-complex dtype conversion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29294
Differential Revision: D18371928
Pulled By: ezyang
fbshipit-source-id: a80a894eeaeb68540054ccfe405c4d0338fa4350