mirror of
https://github.com/skindhu/Build-A-Large-Language-Model-CN.git
synced 2026-07-29 07:10:24 +08:00
add third chapter
This commit is contained in:
@@ -284,17 +284,11 @@ Sum: tensor(1.)
|
|||||||
>
|
>
|
||||||
> 1. **Softmax 的原理**
|
> 1. **Softmax 的原理**
|
||||||
>
|
>
|
||||||
> Softmax 函数的公式如下:g
|
> Softmax 函数的公式如下:
|
||||||
>
|
>
|
||||||
> \usepackage{amsmath}
|
> ```
|
||||||
>
|
> \mathop{\text{softmax}}\left(z_{i}\right)=\frac{e^{z_{i}}}{\sum_{j} e^{z_{j}}}
|
||||||
> [
|
> ```
|
||||||
>
|
|
||||||
> \operatorname{softmax}\left(z_{i}\right)=\frac{e^{z_{i}}}{\sum_{j} e^{z_{j}}}
|
|
||||||
>
|
|
||||||
> ]
|
|
||||||
>
|
|
||||||
> This is an inline formula: $E=mc^2$.
|
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user