]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
feat: add new `sin` and `cos` operators (#919)
authorRonsor <redacted>
Mon, 12 Aug 2024 13:02:08 +0000 (06:02 -0700)
committerGitHub <redacted>
Mon, 12 Aug 2024 13:02:08 +0000 (15:02 +0200)
commit21f9e5c426b105841c2e346d8f1aafec398edf15
treedae7d5929cac1752b5b021c55976ca24dd8bcceb
parenta735a7b5fce27d23c2a6b0b3ccbb47b2c51e83e7
feat: add new `sin` and `cos` operators (#919)

* ggml : add sin/cos operators

* ggml-cuda : add sin/cos operators

* ggml : add corresponding tests for sin/cos

* ggml : add backward computation for sin/cos operators

* ggml-vulkan : add sin/cos operators

* ggml-vulkan : add sin/cos shader source

* metal : add sin, cos

---------

Co-authored-by: Georgi Gerganov <redacted>
12 files changed:
include/ggml.h
src/ggml-cuda.cu
src/ggml-cuda/unary.cu
src/ggml-cuda/unary.cuh
src/ggml-metal.m
src/ggml-metal.metal
src/ggml-vulkan.cpp
src/ggml.c
src/vulkan-shaders/cos.comp [new file with mode: 0644]
src/vulkan-shaders/sin.comp [new file with mode: 0644]
src/vulkan-shaders/vulkan-shaders-gen.cpp
tests/test-backend-ops.cpp