ggml-zdnn: fix missing return from init_tensor

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
Aaron Teo
2025-07-30 13:34:47 +08:00
parent 4493b148d0
commit e30b1ffbde

View File

@@ -56,9 +56,8 @@ inline void ggml_zdnn_load_tensor(zdnn_ztensor & ztensor,
inline void ggml_zdnn_init_tensor(ggml_backend_zdnn_buffer * buffer, const ggml_tensor * tensor) { inline void ggml_zdnn_init_tensor(ggml_backend_zdnn_buffer * buffer, const ggml_tensor * tensor) {
switch (tensor->op) { switch (tensor->op) {
case GGML_OP_NONE: case GGML_OP_NONE:
{
// noop here because we will initialise it during the compute graph execution // noop here because we will initialise it during the compute graph execution
} break; return;
case GGML_OP_MUL_MAT: case GGML_OP_MUL_MAT:
{ {