MCPcopy Create free account
hub / github.com/ckd0817/LLM-Interview-Code / LayerNorm

Class LayerNorm

normalization/LayerNorm.py:14–58  ·  view source on GitHub ↗

层归一化模块 公式: LayerNorm(x) = (x - mean) / sqrt(var + eps) * gamma + beta Args: model_dim: 归一化的特征维度 eps: 数值稳定性常数,防止除零,默认 1e-5

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected