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

Function ggml_are_same_stride

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

Source from the content-addressed store, hash-verified

1487}
1488
1489bool ggml_are_same_stride(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
1490 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1491
1492 return
1493 (t0->nb[0] == t1->nb[0]) &&
1494 (t0->nb[1] == t1->nb[1]) &&
1495 (t0->nb[2] == t1->nb[2]) &&
1496 (t0->nb[3] == t1->nb[3]);
1497}
1498
1499// check if t1 can be represented as a repetition of t0
1500bool ggml_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {

Callers 2

build_inp_embdMethod · 0.85
ggml_vk_can_fuseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected