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

Function ggml_view_1d

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

Source from the content-addressed store, hash-verified

3623// ggml_view_1d
3624
3625struct ggml_tensor * ggml_view_1d(
3626 struct ggml_context * ctx,
3627 struct ggml_tensor * a,
3628 int64_t ne0,
3629 size_t offset) {
3630 struct ggml_tensor * result = ggml_view_impl(ctx, a, 1, &ne0, offset);
3631
3632 return result;
3633}
3634
3635// ggml_view_2d
3636

Callers 15

build_stackMethod · 0.85
build_rsMethod · 0.85
build_rs_inp_implFunction · 0.85
build_samplingMethod · 0.85
llm_build_bertMethod · 0.85
build_rwkv6_time_mixMethod · 0.85
build_rwkv7_time_mixMethod · 0.85
llm_build_modern_bertMethod · 0.85
build_shortconv_blockMethod · 0.85
build_mamba_layerMethod · 0.85

Calls 1

ggml_view_implFunction · 0.85

Tested by 4

test_view_inplaceFunction · 0.68
test_reuse_and_freeFunction · 0.68
test_reallocationFunction · 0.68
llm_build_kv_storeMethod · 0.68