MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / ggml_transpose

Function ggml_transpose

ggml/src/ggml.c:3828–3844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3826// ggml_transpose
3827
3828struct ggml_tensor * ggml_transpose(
3829 struct ggml_context * ctx,
3830 struct ggml_tensor * a) {
3831 struct ggml_tensor * result = ggml_view_tensor(ctx, a);
3832 ggml_format_name(result, "%s (transposed)", a->name);
3833
3834 result->ne[0] = a->ne[1];
3835 result->ne[1] = a->ne[0];
3836
3837 result->nb[0] = a->nb[1];
3838 result->nb[1] = a->nb[0];
3839
3840 result->op = GGML_OP_TRANSPOSE;
3841 result->src[0] = a;
3842
3843 return result;
3844}
3845
3846// ggml_get_rows
3847

Callers 15

merge_tensorMethod · 0.85
build_vitMethod · 0.85
build_inpMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
build_attn_mhaMethod · 0.85
build_poolingMethod · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_format_nameFunction · 0.85

Tested by 5

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