Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deepcopy FP module even if on meta device (pytorch#1676)
Summary: Pull Request resolved: pytorch#1676 When we fx trace, even if there are 2 FP modules (because 2 cards), since it was sharded on meta, the ranks just have a reference to the FP on rank 0 and for whatever reason, FX eliminates the FP on rank 1 and it just shows the one on rank 0 do a deepcopy even when on meta device so each rank explicitly has their own copy, fx will persist it Reviewed By: lequytra, tissue3 Differential Revision: D53294788 fbshipit-source-id: f70008a79e5f9fba2499d748d23587b1fc3c3c4a
- Loading branch information