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

Function ggml_is_contiguous_2

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

Source from the content-addressed store, hash-verified

1431}
1432
1433bool ggml_is_contiguous_2(const struct ggml_tensor * tensor) {
1434 return ggml_is_contiguous_n(tensor, 2);
1435}
1436
1437bool ggml_is_contiguously_allocated(const struct ggml_tensor * tensor) {
1438 return ggml_nbytes(tensor) == ggml_nelements(tensor) * ggml_type_size(tensor->type)/ggml_blck_size(tensor->type);

Callers 1

Calls 1

ggml_is_contiguous_nFunction · 0.85

Tested by

no test coverage detected