MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_is_scalar

Function ggml_is_scalar

external/ggml/src/ggml.c:1376–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374}
1375
1376bool ggml_is_scalar(const struct ggml_tensor * tensor) {
1377 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1378
1379 return tensor->ne[0] == 1 && tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1;
1380}
1381
1382bool ggml_is_vector(const struct ggml_tensor * tensor) {
1383 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Calls

no outgoing calls

Tested by 1

eval_gradMethod · 0.68