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

Function ggml_is_matrix

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

Source from the content-addressed store, hash-verified

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");
1338
1339 return tensor->ne[2] == 1 && tensor->ne[3] == 1;
1340}
1341
1342bool ggml_is_3d(const struct ggml_tensor * tensor) {
1343 return tensor->ne[3] == 1;

Callers 9

build_graphMethod · 0.85
ggml_argmaxFunction · 0.85
ggml_get_rows_backFunction · 0.85
ggml_conv_transpose_1dFunction · 0.85
ggml_ssm_convFunction · 0.85
ggml_ssm_scanFunction · 0.85
ggml_graph_dump_dotFunction · 0.85
ggml_zdnn_supports_opFunction · 0.85

Calls

no outgoing calls

Tested by 1

build_graphMethod · 0.68