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

Function ggml_is_vector

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

Source from the content-addressed store, hash-verified

1328}
1329
1330bool ggml_is_vector(const struct ggml_tensor * tensor) {
1331 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1332
1333 return tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1;
1334}
1335
1336bool ggml_is_matrix(const struct ggml_tensor * tensor) {
1337 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 4

build_graphMethod · 0.85
ggml_get_rows_backFunction · 0.85
ggml_rope_implFunction · 0.85
ggml_ssm_scanFunction · 0.85

Calls

no outgoing calls

Tested by 1

build_graphMethod · 0.68