Skip to content

Commit

Permalink
xnn_create_runtime_v4 allocates a non-shared workspace if none is pro…
Browse files Browse the repository at this point in the history
…vided

PiperOrigin-RevId: 676694213
  • Loading branch information
alankelly authored and xnnpack-bot committed Sep 20, 2024
1 parent de123c1 commit 260cc3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,8 @@ enum xnn_status xnn_create_runtime_v4(
}

if (workspace == NULL) {
xnn_log_error("failed to create runtime: workspace is NULL");
status = xnn_status_invalid_parameter;
goto error;
xnn_log_debug("Allocating non-shared workspace");
workspace = xnn_allocate_zero_simd_memory(sizeof(struct xnn_workspace));
}

const uint32_t optimization_flags = XNN_FLAG_HINT_SPARSE_INFERENCE | XNN_FLAG_HINT_FP16_INFERENCE |
Expand Down

0 comments on commit 260cc3d

Please sign in to comment.