Explorar el Código

ggml : remove return from ggml_gallocr_allocate_node (ggml/1048)

This commit removes the return statement from ggml_gallocr_allocate_node
function.

The motivation behind this change is to make the code more readable and
consistent.
Daniel Bevenius hace 1 año
padre
commit
130d0c90bd
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      ggml/src/ggml-alloc.c

+ 0 - 1
ggml/src/ggml-alloc.c

@@ -534,7 +534,6 @@ static void ggml_gallocr_allocate_node(ggml_gallocr_t galloc, struct ggml_tensor
         size_t offset = ggml_dyn_tallocr_alloc(alloc, size, node);
         hn->buffer_id = buffer_id;
         hn->offset = offset;
-        return;
     }
 }