Skip to content

Commit b2288b3

Browse files
Merge branch 'main' into tosa_files_naming
2 parents a240307 + b8a0edd commit b2288b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backends/xnnpack/runtime/XNNExecutor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ ET_NODISCARD Error XNNExecutor::initialize(
7070
* delegate->execute()
7171
*/
7272
ET_NODISCARD Error XNNExecutor::prepare_args(EValue** args) {
73+
ET_CHECK_OR_RETURN_ERROR(
74+
runtime_ != nullptr,
75+
Internal,
76+
"XNNPACK Delegate did not compile correctly");
77+
7378
// Create xnn_externals_value from evalue args
7479
xnn_status status;
7580
for (uint32_t i = 0; i < externals_.size(); ++i) {

0 commit comments

Comments
 (0)