]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
cpu : add FLOOR, CEIL, ROUND and TRUNC unary operators (llama/16083)
authorsafranowith <redacted>
Wed, 15 Oct 2025 19:24:51 +0000 (22:24 +0300)
committerGeorgi Gerganov <redacted>
Wed, 22 Oct 2025 09:58:11 +0000 (12:58 +0300)
commit757d51d21dc82c108477079d536999b74fcf74d5
treeadc8c7eec54ee97543b02d4c58d6be11d5c33f81
parentbef9f74553e4dde2e1ac19f116b41a11bc4ce283
cpu : add FLOOR, CEIL, ROUND and TRUNC unary operators (llama/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
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