mse_loss_with_reduction

Function mse_loss_with_reduction 

Source
pub fn mse_loss_with_reduction<B>(
    prediction: &Tensor<B>,
    target: &Tensor<B>,
    reduction: Reduction,
) -> Result<Tensor<B>, Error>
where B: Backend,
Expand description

MSE Loss with configurable reduction.