[Static Runtime] Use native version of at::empty (#53216)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53216
- at::native::empty_cpu calls at::detail::empty_cpu without any changes to the arguments. So we could call at::detail::empty_cpu directly.
- There is no need to create a TensorOptions object first since we can get all the relevant information from the tensor directly.
Reviewed By: bertmaher, swolchok
Differential Revision: D26792255
fbshipit-source-id: 7a4e368a19cea79e136e34dab854cb1d37dbeb58