Remove duplicate definitions of CppTypeToScalarType (#42640)
Summary:
I noticed that `TensorIteratorDynamicCasting.h` defines a helper meta-function `CPPTypeToScalarType` which does exactly the same thing as the `c10::CppTypeToScalarType` meta-function I added in gh-40927. No need for two identical definitions.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42640
Reviewed By: malfet
Differential Revision: D22969708
Pulled By: ezyang
fbshipit-source-id: 8303c7f4a75ae248f393a4811ae9d2bcacab44ff