-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[static-runtime] optimize empty if blocks at runtime #74987
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
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 3d35341 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
69d7c6f to
ed10193
Compare
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
ed10193 to
bcb0b83
Compare
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
bcb0b83 to
ffca382
Compare
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
ffca382 to
9c72871
Compare
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
9c72871 to
0940ba9
Compare
Summary: Pull Request resolved: pytorch#74987 Add specializations to `prim::If` operator at runtime to save resources when some of subblocks are empty Test Plan: `buck build //caffe2:torch-cpp-cpu` `buck test //caffe2/benchmarks/static_runtime/...` Add unit test: `buck test //caffe2/benchmarks/static_runtime:static_runtime_cpptest -- StaticRuntime.EmptyIfBlock` Differential Revision: D35262952 fbshipit-source-id: 5f2616e39d87c4175693a9e32dd82c698bdb45c4
|
This pull request was exported from Phabricator. Differential Revision: D35262952 |
0940ba9 to
3d35341
Compare
Summary: Pull Request resolved: #74987 Add specializations to `prim::If` operator at runtime to save resources when some of subblocks are empty Test Plan: `buck build //caffe2:torch-cpp-cpu` `buck test //caffe2/benchmarks/static_runtime/...` Add unit test: `buck test //caffe2/benchmarks/static_runtime:static_runtime_cpptest -- StaticRuntime.EmptyIfBlock` Reviewed By: mikeiovine Differential Revision: D35262952 fbshipit-source-id: 324f88471f33f035f4d8a9b212716530d8e59df2
|
Hey @tenpercent. |
Summary: Add specializations to
prim::Ifoperator at runtime to save resources when some of subblocks are emptyTest Plan:
buck build //caffe2:torch-cpp-cpubuck test //caffe2/benchmarks/static_runtime/...Add unit test:
buck test //caffe2/benchmarks/static_runtime:static_runtime_cpptest -- StaticRuntime.EmptyIfBlockDifferential Revision: D35262952