Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remote the list for the attributes that will be ignored for pickling (#…
…58345) Summary: Pull Request resolved: #58345 1. Add a sanity check to make sure any new attribute added to the constructor should be added to either `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING` pr `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING`. 2. Update some comments and warning -- now if a new attribute is added after the construction, it will not be pickled. Previously it will trigger a runtime error, which is hard for unit test (one worker hit the runtime error, but the other worker will cause timeout). Context: #58019 (comment) ghstack-source-id: 129070358 Test Plan: unit test Reviewed By: rohan-varma Differential Revision: D28460744 fbshipit-source-id: 8028186fc447c88fbf2bf57f5c5d321f42ba54ed
- Loading branch information
1 parent
9def776
commit 2436377
Showing
2 changed files
with
28 additions
and
9 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