std :: ml::module
Function std::module_loss
generic<M: Module> &FloatTensor module_loss(
&M m,
int loss,
const &FloatTensor x,
const &FloatTensor y,
)A built-in loss (TRAIN_LOSS_*) of m's output against y.
std :: ml::module
generic<M: Module> &FloatTensor module_loss(
&M m,
int loss,
const &FloatTensor x,
const &FloatTensor y,
)A built-in loss (TRAIN_LOSS_*) of m's output against y.