]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
CANN: Refactor `evaluate_and_capture_cann_graph` (llama/17333)
authorRaul Torres <redacted>
Fri, 21 Nov 2025 08:23:29 +0000 (08:23 +0000)
committerGeorgi Gerganov <redacted>
Fri, 12 Dec 2025 15:53:05 +0000 (17:53 +0200)
commita009dc172c8907e96bc2a026f8174a2d1b0a0101
treef9dce9e275edf47c49e6f3a6539340f085852437
parentcb3ee1b098f78408cabf2ebfa1beeacccb20342f
CANN: Refactor `evaluate_and_capture_cann_graph` (llama/17333)

* CANN: Refactor `evaluate_and_capture_cann_graph`

**Description of the problem**

* `matched_graph` is obtained even if graph mode is disabled.
* End of graph capture and graph replay are unnecessarily placed in different `if` blocks.

**Proposed solution**

* Obtain `matched_graph` only if graph mode is enabled.
* Place end of graph capture and graph reply inside the same `if` block.
* Unify graph related comments.

* Remove trailing whitespace
ggml/src/ggml-cann/ggml-cann.cpp