Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip wrapping if serialization wrapper attached & deepcopy DataPipe i…
…n load_state_dict (#833) Summary: Per title - We don't need to attach serialization wrapper if the last DataPipe has been `_DataPipeSerializationWrapper` - When we `load_state_dict`, we still need a copy of `self.datapipe` as it has been done in `__init__` function. We should either do deepcoy to `self._datapipe_before_reading_service_adapt` or skip deepcopy to `self._datapipe_before_reading_service_adapt` at those two places. Pull Request resolved: #833 Reviewed By: NivekT Differential Revision: D40399573 Pulled By: ejguan fbshipit-source-id: 16fc80bd005a4b8671d48780c7aea8f164bccba8
- Loading branch information