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

Function ggml_is_contiguous_rows

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

Source from the content-addressed store, hash-verified

1452}
1453
1454bool ggml_is_contiguous_rows(const struct ggml_tensor * tensor) {
1455 return
1456 tensor->ne[0] == ggml_blck_size(tensor->type) ||
1457 tensor->nb[0] == ggml_type_size(tensor->type);
1458}
1459
1460static inline bool ggml_is_padded_1d(const struct ggml_tensor * tensor) {
1461 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 15

ggml_set_rowsFunction · 0.85
ggml_vk_can_fuseFunction · 0.85
ggml_metal_op_cumsumFunction · 0.85
ggml_metal_op_add_idFunction · 0.85
ggml_metal_op_binFunction · 0.85
ggml_metal_op_normFunction · 0.85
ggml_metal_op_argsortFunction · 0.85
ggml_metal_op_top_kFunction · 0.85

Calls 2

ggml_blck_sizeFunction · 0.85
ggml_type_sizeFunction · 0.85

Tested by

no test coverage detected