Migrate CPU_tensor_apply to TensorIterator (#44242)
Summary:
Closes https://github.com/pytorch/pytorch/issues/24487
Closes https://github.com/pytorch/pytorch/issues/24488
Closes https://github.com/pytorch/pytorch/issues/24489
Closes https://github.com/pytorch/pytorch/issues/24490
Closes https://github.com/pytorch/pytorch/issues/24491
Closes https://github.com/pytorch/pytorch/issues/24492
Closes https://github.com/pytorch/pytorch/issues/24493
Closes https://github.com/pytorch/pytorch/issues/24494
Closes https://github.com/pytorch/pytorch/issues/24495
Closes https://github.com/pytorch/pytorch/issues/24496
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44242
Reviewed By: mruberry
Differential Revision: D24212123
Pulled By: VitalyFedyunin
fbshipit-source-id: feca9a0bf3b25be76409e8c83f90e7c5c91dce1a