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

Function ggml_view_3d

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

Source from the content-addressed store, hash-verified

3655// ggml_view_3d
3656
3657struct ggml_tensor * ggml_view_3d(
3658 struct ggml_context * ctx,
3659 struct ggml_tensor * a,
3660 int64_t ne0,
3661 int64_t ne1,
3662 int64_t ne2,
3663 size_t nb1,
3664 size_t nb2,
3665 size_t offset) {
3666 const int64_t ne[3] = { ne0, ne1, ne2 };
3667
3668 struct ggml_tensor * result = ggml_view_impl(ctx, a, 3, ne, offset);
3669
3670 result->nb[1] = nb1;
3671 result->nb[2] = nb2;
3672 result->nb[3] = result->nb[2]*ne2;
3673
3674 return result;
3675}
3676
3677// ggml_view_4d
3678

Callers 15

build_vitMethod · 0.85
build_rope_2dMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
build_graph_shiftMethod · 0.85
llm_build_deepseek2Method · 0.85
llm_build_codeshellMethod · 0.85
llm_build_minicpm3Method · 0.85
llm_build_bailingmoe2Method · 0.85
llm_build_jaisMethod · 0.85

Calls 1

ggml_view_implFunction · 0.85

Tested by 3

build_graphMethod · 0.68
build_graphMethod · 0.68
llm_build_kqvMethod · 0.68