7중 for문 연산
for batch for out_h for out_w for out_c for kernel_c for kernel_h for kernel_w
nD data →\rarr→ 2D data GEMM : General Matrix to Matrix Multiplication np.matmul()로 한 번에 연산
np.matmul()
σ(x)=11+e−x\sigma(x)=\displaystyle\frac{1}{1+e^{-x}}σ(x)=1+e−x1
tanh(x)=ex−e−xex+e−x\tanh(x)=\displaystyle\frac{e^{x}-e^{-x}}{e^{x}+e^{-x}}tanh(x)=ex+e−xex−e−x
(x)+=max(0,x)(x)^+=\max(0,x)(x)+=max(0,x)
LeakyReLU={xif x≥0αxif otherwiseLeakyReLU=\begin{cases} x &\text{if } x \geq 0 \\ \alpha x &\text{if } otherwise \end{cases}LeakyReLU={xαxif x≥0if otherwise α=0.02\alpha=0.02α=0.02