-
Notifications
You must be signed in to change notification settings - Fork 537
method_meta add uses_backend function #8198
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🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8198
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit d18c44a with merge base 3e64c4e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D69143825 |
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.
Thanks for adding this! It's a reasonable feature.
runtime/executor/method_meta.h
Outdated
/** | ||
* Check to see if a backend is used in this method. | ||
* | ||
* @returns Whether a backend is used in this method. | ||
*/ |
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.
Please add a @param
, and clarify true-vs-false rather than "whether".
/** | |
* Check to see if a backend is used in this method. | |
* | |
* @returns Whether a backend is used in this method. | |
*/ | |
/** | |
* Check to see if a backend is used by this method. | |
* | |
* @param backend_name The name of the backend to search for. | |
* @returns true if this method uses this backend; false otherwise. | |
*/ |
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.
Added clarification
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.
Please add the @param
line too
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Differential Revision: D69143825
0993897
to
1ff1b1f
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
@pytorchbot label "release notes: Adds method meta function which checks whether a backend is used by a program" |
Didn't find following labels among repository labels: release notes: Adds method meta function which checks whether a backend is used by a program |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Differential Revision: D69143825
1ff1b1f
to
9d7ed81
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Differential Revision: D69143825
9d7ed81
to
86b15c1
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Differential Revision: D69143825
86b15c1
to
54b7d77
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
@pytorchbot label "release notes: misc" |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Differential Revision: D69143825
54b7d77
to
d5f51f6
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
@dbort Does it need an ET_EXPERIMENTAL tag, or can I define it normally to avoid deprecated declarations warning? |
I think the new method is general enough to remove the ET_EXPERIMENTAL annotation. The behavior is well-defined compared to e.g. the instruction count. |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Reviewed By: dbort Differential Revision: D69143825
d5f51f6
to
e4720f2
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present. Reviewed By: dbort Differential Revision: D69143825
e4720f2
to
d18c44a
Compare
This pull request was exported from Phabricator. Differential Revision: D69143825 |
Summary: For a runtime that supports models of a couple different types it helps to be able to check ahead of time whether certain backend types are present. In our case, there are processors that can use this information to make scheduling decisions without having the actual required backend implementations present.
Differential Revision: D69143825