SIGN IN SIGN UP

CANN: Refactor `evaluate_and_capture_cann_graph` (#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
R
Raul Torres committed
2370665e560fb6e340c4a219464e0967e30e28c4
Parent: 21d31e0
Committed by GitHub <noreply@github.com> on 11/21/2025, 8:23:29 AM