forked from snuspl/nimble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify ScriptModule bindings. (#29432)
Summary: Pull Request resolved: pytorch/pytorch#29432 This removes a lot of the private methods on torch._C.ScriptModule, and instead implements functionality in terms of slot_dict_impl views to implement _parameter, _buffers, and _modules in nn.Module. A followup PR should also remove the _register_attribute, _register_module, and _register_parameter methods, but this requires more refactoring of the way tracing creates modules and replication for data parallel works. Test Plan: Imported from OSS Differential Revision: D18387963 Pulled By: zdevito fbshipit-source-id: f10d47afeb30c1e05d704ae5ac4166830933125c
- Loading branch information
1 parent
5b702ab
commit 4e4e29a
Showing
7 changed files
with
83 additions
and
159 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
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
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
Oops, something went wrong.