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

Function permute

src/framework/modules/whisper_embedding.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17core::TensorValue permute(
18 core::ModuleBuildContext & ctx,
19 const core::TensorValue & input,
20 std::array<int, core::kMaxTensorRank> axes) {
21 return TransposeModule({axes, input.shape.rank}).build(ctx, input);
22}
23
24core::TensorValue reshape_heads(
25 core::ModuleBuildContext & ctx,

Callers 2

whisper_attentionFunction · 0.70
buildMethod · 0.70

Calls 2

TransposeModuleClass · 0.85
buildMethod · 0.45

Tested by

no test coverage detected