Commit 0a3bd6a
CANN: Refactor
* 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 whitespaceevaluate_and_capture_cann_graph (ggml-org#17333)1 parent 72b2e05 commit 0a3bd6a
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2270 | 2270 | | |
2271 | 2271 | | |
2272 | 2272 | | |
2273 | | - | |
2274 | | - | |
| 2273 | + | |
2275 | 2274 | | |
2276 | 2275 | | |
2277 | 2276 | | |
| |||
2294 | 2293 | | |
2295 | 2294 | | |
2296 | 2295 | | |
2297 | | - | |
2298 | | - | |
2299 | | - | |
2300 | | - | |
2301 | 2296 | | |
2302 | | - | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2303 | 2304 | | |
2304 | 2305 | | |
2305 | 2306 | | |
| |||
0 commit comments