]> git.djapps.eu Git - pkg/ggml/sources/ggml/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>
Tue, 21 Oct 2025 15:14:33 +0000 (18:14 +0300)
commit9715e19c3d948e03ba5c170b7dbbb1efbf2b6107
treefafcb5c713f9197623026f9b00095c680a7b63ce
parent4560236227d6b561390940c113a6523b54d73b26
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
include/ggml.h
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ops.cpp
src/ggml-cpu/unary-ops.cpp
src/ggml-cpu/unary-ops.h
src/ggml.c