[Static Runtime] Make canEnableStaticRuntime examine sub-blocks#87396
[Static Runtime] Make canEnableStaticRuntime examine sub-blocks#87396mikeiovine wants to merge 1 commit intopytorch:masterfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87396
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 12ca662: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
0849a5d to
31ac4f4
Compare
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: c40f0fb03c974db476e1d3525b45320cd1aac91e
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
31ac4f4 to
841ff6d
Compare
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: f304746c52198d38b2a9a1b48a0f8a0059e654da
841ff6d to
99c1cd7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
99c1cd7 to
c77e4d1
Compare
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: f1111ae4628dc778be063b098d11931e64eb4352
c77e4d1 to
812da0f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
812da0f to
bbd8e70
Compare
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: 4415dd3a67bcc1d3594a97a3c94a3149d5c93401
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
bbd8e70 to
7c09e53
Compare
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
7c09e53 to
d31c2da
Compare
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: 04bf5c2962ef2e97540373e1fb5edfe621df1a89
…rch#87396) Summary: Pull Request resolved: pytorch#87396 Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Reviewed By: tenpercent Differential Revision: D40564452 fbshipit-source-id: 440cb09c0120b8dd8c2b0734c18e741a5963966d
d31c2da to
12ca662
Compare
|
This pull request was exported from Phabricator. Differential Revision: D40564452 |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
Hey @mikeiovine. |
…rch#87396) Summary: Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Differential Revision: D40564452 Pull Request resolved: pytorch#87396 Approved by: https://github.com/tenpercent
…rch#87396) Summary: Someone was running into problems where 1) Static Runtime enablement would fail 2) We would try to fall back to the JIT interpreter *after trying to create `StaticModule`* 3) The fallback fails because Static Runtime mangled the graph. We don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of `canEnableStaticRuntime` is to catch issues in the module before Static Runtime messes with it. With this diff, `StaticModule` instantiation can be avoided by querying `canEnableStaticRuntime` and the issue is fixed. Test Plan: New unit test Differential Revision: D40564452 Pull Request resolved: pytorch#87396 Approved by: https://github.com/tenpercent
Summary:
Someone was running into problems where
StaticModuleWe don't want to prevent Static Runtime from mutating its input due to memory concerns. The intent of
canEnableStaticRuntimeis to catch issues in the module before Static Runtime messes with it.With this diff,
StaticModuleinstantiation can be avoided by queryingcanEnableStaticRuntimeand the issue is fixed.Test Plan: New unit test
Differential Revision: D40564452