Added sparse-tensor copy logic to dispatcher (#65304)
Summary:
- Only ported copy for sparse tensor to dispatcher. Everything else is the same
- Duplicated code for named tensor handling in sparse tensor copy
- Might change it later to handle named tensors using dispatcher
Issue https://github.com/pytorch/pytorch/issues/61122
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65304
Reviewed By: gchanan
Differential Revision: D31176720
Pulled By: ezyang
fbshipit-source-id: 56757a3b0fb56c3d05c16dd935428a0cd91ea766