Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-sycl/fusion.hpp # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-sycl / fusion.hpp` 17 lines ยท 787 bytes Raw Blame History 1 #ifndef GGML_SYCL_FUSION_HPP 2 #define GGML_SYCL_FUSION_HPP 3 4 #include 5 6 #include "common.hpp" 7 8 // Backend-side fusability test. `ops` names a candidate op sequence starting at cgraph node 9 // `node_idx`, and `unary_ops` the GGML_UNARY_OP each GGML_OP_UNARY in `ops` must carry, in 10 // order; the result is true only if ggml considers that subgraph fusable *and* the SYCL 11 // kernel which would service it accepts the tensors involved (types, shapes, contiguity). 12 // 13 // Lives in its own translation unit because it grows a branch per supported op sequence. 14 bool ggml_sycl_can_fuse(const ggml_cgraph * cgraph, int node_idx, std::initializer_list ops, 15 std::initializer_list unary_ops); 16 17 #endif // GGML_SYCL_FUSION_HPP