-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[torch deploy] add register_module_source #58290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
this is a helper function to get some python source code loaded on each interpreter without having to use the standard import system or packages. Useful for debugging or for writing wrapper classes for handling loaded modules. [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit d13c000 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
|
@zdevito has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
this is a helper function to get some python source code loaded on each interpreter without having to use the standard import system or packages. Useful for debugging or for writing wrapper classes for handling loaded modules. ghstack-source-id: 67596c7 Pull Request resolved: pytorch#58290
this is a helper function to get some python source code loaded on each interpreter without having to use the standard import system or packages. Useful for debugging or for writing wrapper classes for handling loaded modules. Differential Revision: [D28435306](https://our.internmc.facebook.com/intern/diff/D28435306) [ghstack-poisoned]
|
@zdevito has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. does it work for creating modules other than at the top level of main?
(could you create or append modules to existing module heirarchies?) not sure you'd want to anyway, and in cases of more complex codebases you clearly suggest package instead.
Codecov Report
@@ Coverage Diff @@
## gh/zdevito/198/base #58290 +/- ##
========================================================
+ Coverage 66.07% 76.44% +10.37%
========================================================
Files 2018 1992 -26
Lines 201251 199843 -1408
========================================================
+ Hits 132980 152774 +19794
+ Misses 68271 47069 -21202 |
this is a helper function to get some python source code loaded on each interpreter without having to use the standard import system or packages. Useful for debugging or for writing wrapper classes for handling loaded modules. Differential Revision: [D28435306](https://our.internmc.facebook.com/intern/diff/D28435306) [ghstack-poisoned]
|
@zdevito has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Stack from ghstack:
this is a helper function to get some python source code loaded
on each interpreter without having to use the standard import system
or packages. Useful for debugging or for writing wrapper classes for
handling loaded modules.
Differential Revision: D28435306