CPU-strided-complex support for ComplexFloat (#29133)
Summary:
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/29133
Differential Revision: D18309297
Pulled By: ezyang
fbshipit-source-id: adf4bc3a45ba2918c8998d59fa94a52f89663e94