Repository navigation
Return an error from MethodMeta::get_backend_name for a delegate without an id (#24354) - #24354
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24354
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 2 Pending, 1 Unrelated FailureAs of commit 5676a21 with merge base e40e64c ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@sivapatibandla has exported this pull request. If you are a Meta employee, you can view the originating Diff in D128278670. |
…out an id (pytorch#24354) Summary: `MethodMeta::get_backend_name` dereferenced the delegate's `id()` without checking it, so a program whose delegate entry has no id crashed instead of returning an error. It now returns `Error::InvalidProgram`, like `Method::init`, which rejects such a delegate with "Missing backend id", while `MethodMeta::uses_backend` already skips it. Reviewed By: metascroy Differential Revision: D128278670
82ea750 to
fcd460b
Compare
This PR needs a
|
…out an id (pytorch#24354) Summary: `MethodMeta::get_backend_name` dereferenced the delegate's `id()` without checking it, so a program whose delegate entry has no id crashed instead of returning an error. It now returns `Error::InvalidProgram`, like `Method::init`, which rejects such a delegate with "Missing backend id", while `MethodMeta::uses_backend` already skips it. Reviewed By: metascroy Differential Revision: D128278670
64f1a5e to
b15f936
Compare
…out an id (pytorch#24354) Summary: `MethodMeta::get_backend_name` dereferenced the delegate's `id()` without checking it, so a program whose delegate entry has no id crashed instead of returning an error. It now returns `Error::InvalidProgram`, like `Method::init`, which rejects such a delegate with "Missing backend id", while `MethodMeta::uses_backend` already skips it. Reviewed By: metascroy Differential Revision: D128278670
…out an id (pytorch#24354) Summary: `MethodMeta::get_backend_name` dereferenced the delegate's `id()` without checking it, so a program whose delegate entry has no id crashed instead of returning an error. It now returns `Error::InvalidProgram`, like `Method::init`, which rejects such a delegate with "Missing backend id", while `MethodMeta::uses_backend` already skips it. Reviewed By: metascroy Differential Revision: D128278670
b15f936 to
5676a21
Compare
Summary:
MethodMeta::get_backend_namedereferenced the delegate'sid()without checking it, so a program whose delegate entry has no id crashed instead of returning an error. It now returnsError::InvalidProgram, likeMethod::init, which rejects such a delegate with "Missing backend id", whileMethodMeta::uses_backendalready skips it.Reviewed By: metascroy
Differential Revision: D128278670