]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml: add ggml_can_fuse_subgraph (llama/16662)
authorAman Gupta <redacted>
Tue, 21 Oct 2025 08:43:14 +0000 (16:43 +0800)
committerGeorgi Gerganov <redacted>
Wed, 22 Oct 2025 09:58:11 +0000 (12:58 +0300)
commit9a8cfb040ccabbbc94ae0ba9d3edb053e671a617
treef17597bbc552ddc80f38679fd1b0ceb961fd50b0
parent5c4c477d00bc6f2bfac27c499e09993aaa54b568
ggml: add ggml_can_fuse_subgraph (llama/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