pub fn mse_loss<S: Shape, E: Dtype, D: Device<E>, T: Tape<E, D>>( pred: Tensor<S, E, D, T>, targ: Tensor<S, E, D> ) -> Tensor<Rank0, E, D, T>
Mean Squared Error. This computes (pred - targ).square().mean().
(pred - targ).square().mean()
See MeanTo, square(), and sub().