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

Function ggml_are_same_shape

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

Source from the content-addressed store, hash-verified

1477}
1478
1479bool ggml_are_same_shape(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
1480 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1481
1482 return
1483 (t0->ne[0] == t1->ne[0]) &&
1484 (t0->ne[1] == t1->ne[1]) &&
1485 (t0->ne[2] == t1->ne[2]) &&
1486 (t0->ne[3] == t1->ne[3]);
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");

Callers 15

build_inp_embdMethod · 0.85
build_shortconv_blockMethod · 0.85
build_graphMethod · 0.85
ggml_count_equalFunction · 0.85
ggml_glu_implFunction · 0.85
ggml_ssm_scanFunction · 0.85
ggml_add_rel_pos_implFunction · 0.85
ggml_cross_entropy_lossFunction · 0.85
ggml_opt_step_adamwFunction · 0.85
ggml_opt_step_sgdFunction · 0.85
ggml_compute_backwardFunction · 0.85

Calls

no outgoing calls

Tested by 1

build_graphMethod · 0.68