Latex 小计
作者:互联网
公式换行等号对齐
\begin{equation}
\begin{aligned}
\mathbf{H}_i&=Attention(\mathbf{Q}_i,\mathbf{K}_i,\mathbf{Z}_i) \\
&=softmax(\frac{\mathbf{Q}_i\mathbf{K}_i^{\mathrm{T}}}{\sqrt{2d_k}})\mathbf{Z_i}
\end{aligned}
\end{equation}
引入包:\usepackage{amsmath}
标签:Latex,begin,end,equation,小计,mathbf,aligned 来源: https://www.cnblogs.com/TianyuSu/p/14501497.html