Skip to content

Non-fatal error for unknown KernelTypes type #1520

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions runtime/executor/method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,11 @@ Error Method::parse_values() {
// subtract one to keep the output in 0 based indexing for a
// disgruntled debugger seeing this error message and checking
// schema.fbs
ET_CHECK_MSG(
false,
"Enum KernelTypes type: %" PRIu32
" not supported. Please look in executorch/schema/program.fbs "
"to see which type this is.",
ET_LOG(
Error,
"Unknown KernelTypes value %" PRIu32,
static_cast<uint32_t>(serialization_value->val_type()) - 1);
return Error::InvalidProgram;
}

// ~Method() will try to clean up n_value_ entries in the values_ array.
Expand Down