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

Function t5_layer_norm

src/framework/modules/text_encoders/t5_base_encoder.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69core::TensorValue t5_layer_norm(
70 core::ModuleBuildContext & ctx,
71 const core::TensorValue & input,
72 const core::TensorValue & weight,
73 const T5BaseEncoderConfig & config) {
74 return RMSNormModule({config.hidden_size, config.rms_norm_eps, true, false})
75 .build(ctx, input, NormWeights{weight, std::nullopt});
76}
77
78core::TensorValue reshape_heads(
79 core::ModuleBuildContext & ctx,

Callers 2

encoder_layerFunction · 0.85
buildMethod · 0.85

Calls 2

RMSNormModuleClass · 0.85
buildMethod · 0.45

Tested by

no test coverage detected