@@ -95,8 +95,7 @@ Convolution is expressed as Equation
9595[ \[ equ: ch-deploy /conv-equation\] ] ( #equ:ch-deploy/conv-equation ) {reference-type="ref"
9696reference="equ: ch-deploy /conv-equation"}.
9797
98- $$ [equ:ch-deploy/conv-equation]
99- \mathbf{Y_{\rm conv}}=\mathbf{W_{\rm conv}}\cdot\mathbf{X_{\rm conv}}+\mathbf{B_{\rm conv}} $$
98+ $$ \mathbf{Y_{\rm conv}}=\mathbf{W_{\rm conv}}\cdot\mathbf{X_{\rm conv}}+\mathbf{B_{\rm conv}}, \text{equ:ch-deploy/conv-equation} $$
10099
101100Here, we do not need to understand what each variable means. Instead, we
102101only need to keep in mind that Equation
@@ -110,8 +109,8 @@ Equation
110109reference="equ: ch-deploy /bn-equation"} is about the computation of
111110Batchnorm:
112111
113- $$ [ equ:ch-deploy/bn-equation]:
114- \mathbf{Y_{\rm bn}}=\gamma\frac{\mathbf{X_{\rm bn}}-\mu_{\mathcal{B}}}{\sqrt{{\sigma_{\mathcal{B}}}^{2}+\epsilon}}+\beta $$
112+ ** equ: ch-deploy /bn-equation: ** \
113+ $$ \mathbf{Y_{\rm bn}}=\gamma\frac{\mathbf{X_{\rm bn}}-\mu_{\mathcal{B}}}{\sqrt{{\sigma_{\mathcal{B}}}^{2}+\epsilon}}+\beta $$
115114
116115Similarly, it is an equation for $\mathbf{Y_ {\rm bn}}$ with respect to
117116$\mathbf{X_ {\rm bn}}$. Other symbols in the equation represent constants.
@@ -126,8 +125,7 @@ uniting and extracting the constants, we obtain Equation
126125[ \[ equ: ch-deploy /conv-bn-equation-3\] ] ( #equ:ch-deploy/conv-bn-equation-3 ) {reference-type="ref"
127126reference="equ: ch-deploy /conv-bn-equation-3"}.
128127
129- $$ [equ:ch-deploy/conv-bn-equation-3]
130- \mathbf{Y_{\rm bn}}=\mathbf{A}\cdot\mathbf{X_{\rm conv}}+\mathbf{B} $$
128+ $$ \mathbf{Y_{\rm bn}}=\mathbf{A}\cdot\mathbf{X_{\rm conv}}+\mathbf{B}, \text{equ:ch-deploy/conv-bn-equation-3} $$
131129
132130Here, $\mathbf{A}$ and $\mathbf{B}$ are two matrices. It can be noticed that
133131Equation
@@ -195,8 +193,7 @@ folding the constants, Batchnorm is defined as Equation
195193[ \[ equ: ch-deploy /replace-scale\] ] ( #equ:ch-deploy/replace-scale ) {reference-type="ref"
196194reference="equ: ch-deploy /replace-scale"}
197195
198- $$ [equ:ch-deploy/replace-scale]
199- \mathbf{Y_{bn}}=scale\cdot\mathbf{X_{bn}}+offset $$
196+ $$ \mathbf{Y_{bn}}=scale\cdot\mathbf{X_{bn}}+offset, \text{equ:ch-deploy/replace-scale} $$
200197
201198where ** scale** and ** offsets** are scalars. This simplified formula can
202199be mapped to a Scale operator.
0 commit comments