MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_is_vector

Function ggml_is_vector

ggml.c:2023–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2021}
2022
2023static inline bool ggml_is_vector(const struct ggml_tensor * tensor) {
2024 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
2025
2026 return tensor->ne[1] == 1 && tensor->ne[2] == 1 && tensor->ne[3] == 1;
2027}
2028
2029static inline bool ggml_is_matrix(const struct ggml_tensor * tensor) {
2030 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 4

ggml_get_rowsFunction · 0.70
ggml_get_rows_backFunction · 0.70
ggml_rope_implFunction · 0.70
ggml_rope_backFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected