[jit][api][refactor] remove redundant deepcopy implementation (#37538)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37538
Test Plan:
.
Imported from OSS
Differential Revision: D21431011
fbshipit-source-id: 9dedccb19c7d43999a756e3f5076846527e2f6ca