Skip to content

Commit

Permalink
reset hash table in ggml_build_forward
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Oct 20, 2023
1 parent c3a979e commit a186173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -18304,6 +18304,7 @@ static void ggml_build_forward_impl(struct ggml_cgraph * cgraph, struct ggml_ten
if (!expand) {
cgraph->n_nodes = 0;
cgraph->n_leafs = 0;
memset(cgraph->visited_hash_table.keys, 0, cgraph->visited_hash_table.size * sizeof(struct ggml_tensor *));
}

const int n0 = cgraph->n_nodes;
Expand Down

0 comments on commit a186173

Please sign in to comment.