MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_transpose

Function ggml_transpose

external/ggml/src/ggml.c:3857–3873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3855// ggml_transpose
3856
3857struct ggml_tensor * ggml_transpose(
3858 struct ggml_context * ctx,
3859 struct ggml_tensor * a) {
3860 struct ggml_tensor * result = ggml_view_tensor(ctx, a);
3861 ggml_format_name(result, "%s (transposed)", a->name);
3862
3863 result->ne[0] = a->ne[1];
3864 result->ne[1] = a->ne[0];
3865
3866 result->nb[0] = a->nb[1];
3867 result->nb[1] = a->nb[0];
3868
3869 result->op = GGML_OP_TRANSPOSE;
3870 result->src[0] = a;
3871
3872 return result;
3873}
3874
3875// ggml_get_rows
3876

Callers 15

attentionFunction · 0.85
ggml_compute_backwardFunction · 0.85
ggml_vk_check_results_0Function · 0.85
test_contFunction · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
llm_build_kv_storeMethod · 0.85
gptj_evalFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_format_nameFunction · 0.85

Tested by 6

test_contFunction · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
build_graphMethod · 0.68
llm_build_kv_storeMethod · 0.68