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

Function ggml_graph_node

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

Source from the content-addressed store, hash-verified

7141}
7142
7143struct ggml_tensor * ggml_graph_node(struct ggml_cgraph * cgraph, int i) {
7144 if (i < 0) {
7145 GGML_ASSERT(cgraph->n_nodes + i >= 0);
7146 return cgraph->nodes[cgraph->n_nodes + i];
7147 }
7148
7149 GGML_ASSERT(i < cgraph->n_nodes);
7150 return cgraph->nodes[i];
7151}
7152
7153struct ggml_tensor ** ggml_graph_nodes(struct ggml_cgraph * cgraph) {
7154 return cgraph->nodes;

Callers 12

compute_piterFunction · 0.85
merge_tensorMethod · 0.85
alloc_compute_metaMethod · 0.85
clip_image_batch_encodeFunction · 0.85
sched_reserveMethod · 0.85
check_all_allocatedFunction · 0.85
can_reuse_memoryFunction · 0.85
check_no_overlapFunction · 0.85
eval_perfMethod · 0.85
nodeMethod · 0.85

Calls

no outgoing calls

Tested by 4

check_all_allocatedFunction · 0.68
can_reuse_memoryFunction · 0.68
check_no_overlapFunction · 0.68
eval_perfMethod · 0.68