MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_graph_get_grad_acc

Function ggml_graph_get_grad_acc

subprojects/llama.cpp/ggml/src/ggml.c:7192–7195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7190}
7191
7192struct ggml_tensor * ggml_graph_get_grad_acc(const struct ggml_cgraph * cgraph, const struct ggml_tensor * node) {
7193 const size_t igrad = ggml_hash_find(&cgraph->visited_hash_set, node);
7194 return igrad != GGML_HASHSET_FULL && ggml_bitset_get(cgraph->visited_hash_set.used, igrad) && cgraph->grad_accs ? cgraph->grad_accs[igrad] : NULL;
7195}
7196
7197void ggml_graph_print(const struct ggml_cgraph * cgraph) {
7198 GGML_LOG_INFO("=== GRAPH ===\n");

Callers 2

ggml_graph_resetFunction · 0.85
ggml_opt_grad_accFunction · 0.85

Calls 2

ggml_hash_findFunction · 0.85
ggml_bitset_getFunction · 0.85

Tested by

no test coverage detected