Skip to content

Commit 07c34de

Browse files
committed
fix doc
Signed-off-by: noemotiovon <[email protected]>
1 parent 361dd2b commit 07c34de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,13 +2155,13 @@ static bool ggml_graph_node_has_matching_properties(ggml_tensor * node, ggml_gra
21552155
* @return true if an update is required; false otherwise.
21562156
*/
21572157
static bool is_cann_graph_update_required(ggml_backend_cann_context * cann_ctx, ggml_cgraph * cgraph) {
2158-
// 节点个数不同,需重新构图
2158+
// The number of nodes is different, so the graph needs to be reconstructed.
21592159
if (cann_ctx->cann_graph->ggml_graph_properties.size() != (size_t)cgraph->n_nodes) {
21602160
cann_ctx->cann_graph->ggml_graph_properties.resize(cgraph->n_nodes);
21612161
return true;
21622162
}
21632163

2164-
// 节点个数相同,便利每个节点,比较其是否匹配
2164+
// The number of nodes is the same; iterate over each node to check whether they match.
21652165
for (int i = 0; i < cgraph->n_nodes; i++) {
21662166
bool has_matching_properties = ggml_graph_node_has_matching_properties(
21672167
cgraph->nodes[i], &cann_ctx->cann_graph->ggml_graph_properties[i]);
@@ -2252,7 +2252,7 @@ static enum ggml_status ggml_backend_cann_graph_compute(
22522252
bool use_cann_graph = true;
22532253
bool cann_graph_update_required = false;
22542254

2255-
// 检查环境变量 LLAMA_SET_ROWS
2255+
// check environment LLAMA_SET_ROWS
22562256
const char* LLAMA_SET_ROWS_ENV = std::getenv("LLAMA_SET_ROWS");
22572257
bool supports_set_rows = LLAMA_SET_ROWS_ENV ? (std::atoi(LLAMA_SET_ROWS_ENV) != 0) : false;
22582258

0 commit comments

Comments
 (0)