Commit 2370665
authored
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 21d31e0 commit 2370665
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | | - | |
2250 | | - | |
| 2249 | + | |
2251 | 2250 | | |
2252 | 2251 | | |
2253 | 2252 | | |
| |||
2271 | 2270 | | |
2272 | 2271 | | |
2273 | 2272 | | |
2274 | | - | |
2275 | | - | |
2276 | | - | |
2277 | | - | |
2278 | 2273 | | |
2279 | | - | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2280 | 2281 | | |
2281 | 2282 | | |
2282 | 2283 | | |
| |||
0 commit comments