]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml : add `ggml_upscale_ext` (#814)
authorJohn Balis <redacted>
Wed, 15 May 2024 08:52:33 +0000 (03:52 -0500)
committerGitHub <redacted>
Wed, 15 May 2024 08:52:33 +0000 (11:52 +0300)
commit126d34985705a5a2222723c145cb4e125ac689f3
tree233b5599b96e1e8ae5e772ad40e646f4441d30b0
parenta85921414daf830bcf5beb668f17ccd1efcbd372
ggml : add `ggml_upscale_ext` (#814)

* initial commit with CPU implementation of upscale to shape and test, cuda implementation next

* experimental commit to see if dst shape is correct

* test version

* test

* removed unnecessary params

* refactor

* fixed tests

* ggml : metal impl + cleanup + sycl dev warnings

* patched ggml_upscale cuda op to handle non-contiguous tensors, added test for non-contiguous behavior

* metal : fix upsacle op to support nb00 + style

---------

Co-authored-by: Georgi Gerganov <redacted>
include/ggml/ggml.h
src/ggml-cuda/upscale.cu
src/ggml-metal.m
src/ggml-metal.metal
src/ggml-sycl.cpp
src/ggml.c
tests/test-backend-ops.cpp