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

Function adaln_embedding

src/models/heartmula/codec.cpp:746–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744 ctx,
745 core::ensure_backend_addressable_layout(ctx, timestep_mod),
746 core::TensorShape::from_dims({batch, 6, hidden_size})),
747 scale_shift);
748 AdaNormParts out{
749 expand_batch_token(ctx, modules::SliceModule({1, 0, 1}).build(ctx, parts), tokens, hidden_size),
750 expand_batch_token(ctx, modules::SliceModule({1, 1, 1}).build(ctx, parts), tokens, hidden_size),
751 expand_batch_token(ctx, modules::SliceModule({1, 2, 1}).build(ctx, parts), tokens, hidden_size),
752 expand_batch_token(ctx, modules::SliceModule({1, 3, 1}).build(ctx, parts), tokens, hidden_size),
753 expand_batch_token(ctx, modules::SliceModule({1, 4, 1}).build(ctx, parts), tokens, hidden_size),
754 expand_batch_token(ctx, modules::SliceModule({1, 5, 1}).build(ctx, parts), tokens, hidden_size),
755 };
756 return out;
757}
758
759core::TensorValue flow_attention(
760 core::ModuleBuildContext & ctx,

Callers 1

flow_estimatorFunction · 0.85

Calls 3

LinearModuleClass · 0.85
timestep_embeddingFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected