[pten] fix when out_dtype is same with x.dtype and still transform type error (#38285)
[pten] fix when out_dtype is same with x.dtype and still transform type error (#38285)

* fix when out_dtype is same with x.dtype and still transform type error

* fix spell error
PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle