forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pickling support for WorkerInfo (pytorch#73371)
Summary: Pull Request resolved: pytorch#73371 This PRs allows for the pybinded class `WorkerInfo` to be pickled. The class is pickled into a tuple of worker_name and rank in format `(NAME, ID)`. This allows WorkerInfo to be passed as an argument for RPC calls. Test Plan: Imported from OSS Reviewed By: mrshenli Differential Revision: D34458153 Pulled By: H-Huang fbshipit-source-id: 7b8f99960bdc0e24021e252d8c8138bcb53f698c (cherry picked from commit 8fb119b)
- Loading branch information
1 parent
f437ca6
commit 6c8e516
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters