ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-sycl / gated_delta_net.hpp
| 1 | #pragma once |
| 2 | |
| 3 | #include <sycl/sycl.hpp> |
| 4 | #include "dpct/helper.hpp" |
| 5 | #include "common.hpp" |
| 6 | #include "ggml.h" |
| 7 | |
| 8 | // fused-kernel recurrent-state output; strides in elements (per-seq stride is always D, set in-kernel) |
| 9 | struct ggml_sycl_gated_delta_net_fused_cache { |
| 10 | float * data; // rollback slot 0 |
| 11 | int64_t slot_stride; // between rollback slots (0 when K==1) |
| 12 | }; |
| 13 | |
| 14 | void ggml_sycl_op_gated_delta_net(ggml_backend_sycl_context & ctx, ggml_tensor * dst); |
| 15 | void ggml_sycl_gated_delta_net(ggml_backend_sycl_context & ctx, ggml_tensor * dst); |
| 16 | |
| 17 | // same op, but writes the snapshot(s) into the cache instead of dst (see ggml_sycl_try_gdn_cache_fusion) |
| 18 | void ggml_sycl_op_gated_delta_net_fused_cache(ggml_backend_sycl_context & ctx, ggml_tensor * dst, |
| 19 | ggml_sycl_gated_delta_net_fused_cache cache); |