]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
cpu : add FLOOR, CEIL, ROUND and TRUNC unary operators (#16083)
authorsafranowith <redacted>
Wed, 15 Oct 2025 19:24:51 +0000 (22:24 +0300)
committerGitHub <redacted>
Wed, 15 Oct 2025 19:24:51 +0000 (21:24 +0200)
commit466c1911ab736f0b7366127edee99f8ee5687417
tree541918a49a45b597aab9e8bea52709ee20cc8b3b
parent0cb7a0683b0529172472d74d21f05470a607f297
cpu : add FLOOR, CEIL, ROUND and TRUNC unary operators (#16083)

* CPU: Add support for FLOOR,CEIL,ROUND and TRUNC unary operators

- Added the operators to unary op enum
- Implemented API functions
- Implemented forward and unary-op logic in CPU backend
- Updated ggml_get_n_tasks
- Updated operators names array and static_assert
- Updated docs and enabled automatic tests

* docs: add documentation for ggml_trunc and ggml_trunc_inplace in ggml.h

* chore: remove trailing whitespace from ggml.h

* Remove unresolved merge markers

* Apply review suggestions: cleanup formatting, enum order and leftover artifacts

* Regenerate ops.md using create_ops_docs.py
docs/ops.md
docs/ops/CPU.csv
ggml/include/ggml.h
ggml/src/ggml-cpu/ggml-cpu.c
ggml/src/ggml-cpu/ops.cpp
ggml/src/ggml-cpu/unary-ops.cpp
ggml/src/ggml-cpu/unary-ops.h
ggml/src/ggml.c