]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml: add ggml_can_fuse_subgraph (#16662)
authorAman Gupta <redacted>
Tue, 21 Oct 2025 08:43:14 +0000 (16:43 +0800)
committerGitHub <redacted>
Tue, 21 Oct 2025 08:43:14 +0000 (16:43 +0800)
commit4926419c4d74a1cf724e7163d937eb72f36e7b26
tree9c14feb830b816fe7185443229ba52c53608bb30
parent6ea37f57391d27736c35cd3c20c1f990b7952b74
ggml: add ggml_can_fuse_subgraph (#16662)

* ggml: add ggml_can_fuse_subgraph

* ggml-cuda: use ggml_can_fuse_subgraph for topk-moe

* format

* 1. remove inputs from signature as they are transient nodes
2. add check for views: view_src should be part of the subgraph

* - combine check into one loop
- check all view_src parents
- other minor review comments

* remove redudant if test

* - rename and other minor review comments

* add assert about count < 32
ggml/src/ggml-cuda/ggml-cuda.cu
ggml/src/ggml-impl.h
ggml/src/ggml.c