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

Function ggml_dup_tensor

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

Source from the content-addressed store, hash-verified

1790}
1791
1792struct ggml_tensor * ggml_dup_tensor(struct ggml_context * ctx, const struct ggml_tensor * src) {
1793 return ggml_new_tensor(ctx, src->type, GGML_MAX_DIMS, src->ne);
1794}
1795
1796void ggml_unravel_index(const struct ggml_tensor * tensor, int64_t i, int64_t * i0, int64_t * i1, int64_t * i2, int64_t * i3) {
1797 const int64_t ne2 = tensor->ne[2];

Callers 15

run_mergeMethod · 0.85
merge_tensorMethod · 0.85
load_tensorsMethod · 0.85
create_tensorMethod · 0.85
ggml_dup_implFunction · 0.85
ggml_add_implFunction · 0.85
ggml_add_idFunction · 0.85
ggml_add1_implFunction · 0.85
ggml_acc_implFunction · 0.85
ggml_sub_implFunction · 0.85
ggml_mul_implFunction · 0.85

Calls 1

ggml_new_tensorFunction · 0.85

Tested by

no test coverage detected