更改

添加198字节 、 2025年5月11日 (日) 10:12
第47行: 第47行:  
** 激活函数通常使用 ReLU,公式如下:
 
** 激活函数通常使用 ReLU,公式如下:
 
<math>\mathrm{output} = \mathrm{ReLU}(W_1 \times x + b_1) \times W_2 + b_2</math>
 
<math>\mathrm{output} = \mathrm{ReLU}(W_1 \times x + b_1) \times W_2 + b_2</math>
 +
 +
* '''自注意力层简化表达''':
 +
 +
<math>[math]\displaystyle{
 +
x_{t+1} = \sigma(Rx_t) \cdot \frac{\exp(Kx_t) + \exp(W) \cdot b_t}{\exp(Kx_t) \cdot (Vx_t) + \exp(W) \cdot a_t}
 +
}[/math]</math>
    
----
 
----
201

个编辑