Replace Module::copy_into with Module::clone. (#24068)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24068
The new method has a simpler interface (no arguments).
Resolves #23915.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24068
Differential Revision: D16736379
Test Plan: Imported from OSS
Pulled By: ZolotukhinM
fbshipit-source-id: 1c1f397ce9cdaa5467fd7da3025cf44d1436ae6b
Author
Mikhail Zolotukhin