Skip to content

Commit

Permalink
cann: Fix error when running a non-exist op (#9424)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachelor-dou authored Sep 12, 2024
1 parent 449ccfb commit df4b794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml-cann.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ GGML_CALL ggml_backend_t ggml_backend_cann_init(int32_t device) {
GGML_CANN_LOG_ERROR("%s: error: failed to allocate context\n", __func__);
return nullptr;
}

ggml_cann_set_device(ctx->device);
ggml_backend_t cann_backend =
new ggml_backend{/* .guid = */ ggml_backend_cann_guid(),
/* .interface = */ ggml_backend_cann_interface,
Expand Down

0 comments on commit df4b794

Please sign in to comment.