]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : add unary and binary map operations (#874)
authorKerfuffle <redacted>
Fri, 14 Apr 2023 14:43:55 +0000 (08:43 -0600)
committerGitHub <redacted>
Fri, 14 Apr 2023 14:43:55 +0000 (17:43 +0300)
commitc9a59b70a54e0bc05777df287feaea3dbe0310c4
tree3be046a57809261cc26f69b5ddd9d58b1f65ba2b
parenta32f7acc9f54dba1c728cb1e596bd00bf3b4eb5f
ggml : add unary and binary map operations (#874)

* GGML map ops proof of concept.

* Various cleanups.

Add handling for task setting.

Add handling for ggml_compute_backward.

Rename functions to ggml_map_unary_f32 and ggml_map_binary_f32

Fix compiler warnings related to casting function pointers and `void *`

Reorder functions and definitions based on the GGML op number.

Use typedefs for map op function pointer types.

* Fix position of map ops cases in ggml_compute_forward
ggml.c
ggml.h