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

Function graph_feed_forward

src/framework/audio/zipenhancer.cpp:602–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602core::TensorValue graph_feed_forward(
603 core::ModuleBuildContext & ctx,
604 const core::TensorValue & x,
605 const std::unordered_map<std::string, Param> & params,
606 const std::string & prefix,
607 const std::string & which,
608 int64_t hidden) {
609 const std::string base = prefix + "." + which;
610 auto y = graph_linear(ctx, x, params, base + ".in_proj", hidden);
611 y = graph_swoosh_l(ctx, y);
612 return graph_linear(ctx, y, params, base + ".out_proj", kDense);
613}
614
615core::TensorValue graph_nonlin_attention(
616 core::ModuleBuildContext & ctx,

Callers 1

graph_zipformer_layerFunction · 0.85

Calls 2

graph_swoosh_lFunction · 0.85
graph_linearFunction · 0.70

Tested by

no test coverage detected