-
Notifications
You must be signed in to change notification settings - Fork 685
Closed
Labels
actionableItems in the backlog waiting for an appropriate impl/fixItems in the backlog waiting for an appropriate impl/fixgood first issueGood for newcomersGood for newcomersmodule: kernelsIssues related to kernel libraries and utilities, and code under kernels/Issues related to kernel libraries and utilities, and code under kernels/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Describe the bug
The current implementation of the view operator (et_view.cpp) uses ET_CHECK macros to check input args. This has the effect of unrecoverably crashing the process when input checks fail. We have observed this on an internal app, where a check failure causes a full app crash.
The kernel should use non-fatal ET_KERNEL_CHECK assertions (logging and returning an error code, rather than calling abort), similar to other portable ops. This allows the caller to gracefully handle model execution failures. See https://github.com/pytorch/executorch/pull/2115/files for an example of how other kernels were updated to use ET_KERNEL_CHECK instead of ET_CHECK macros.
Versions
N/A
Metadata
Metadata
Assignees
Labels
actionableItems in the backlog waiting for an appropriate impl/fixItems in the backlog waiting for an appropriate impl/fixgood first issueGood for newcomersGood for newcomersmodule: kernelsIssues related to kernel libraries and utilities, and code under kernels/Issues related to kernel libraries and utilities, and code under kernels/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module