Criterion
Criterion
[class] L1NormLoss
Implements L1Norm Loss:
reduction is one of :mean or :sum.
[function] !l1norm
Computes L1Norm
[class] MSELoss
Implements MSE Loss:
reduction is one of :mean or :sum.
[function] !mse
Computes MSE Loss between a and b.
[class] CrossEntropyLoss
Returns a tensor that measures the Cross-Entropy-Error between each element in the x and labels. labels are one-hot encoded.
\begin{equation}
out_i=
\begin{cases}
sum(L) & \text{reduction = sum} \\
mean(L) & \text{reduction = mean} \\
L & \text{otherwise}
\end{cases}
\end{equation}