layer_norm

    推荐使用nn.LayerNorm。

    详情见 .

    参数:

    • epsilon (float, 可选) - 为了数值稳定加在分母上的值。默认值:1e-05。

    代码示例