pub fn mean_squared_error<'graph, A, B, F: Float>(y: A, t: B) -> Tensor<'graph, F>
where
    A: AsRef<Tensor<'graph, F>> + Copy,
    B: AsRef<Tensor<'graph, F>> + Copy,
{
    reduce_mean(square(y.as_ref() - t.as_ref()), &[-1], false)
}
/// Computes mean squared error
///
/// Note that the mean axis is the last one.
Computes mean squared error
Note that the mean axis is the last one.
Computes mean squared error Note that the mean axis is the last one .
pub fn mean_squared_error<'graph, A, B, F: Float>(y: A, t: B) -> Tensor<'graph, F>
where
    A: AsRef<Tensor<'graph, F>> + Copy,
    B: AsRef<Tensor<'graph, F>> + Copy,
{
    reduce_mean(square(y.as_ref() - t.as_ref()), &[-1], false)
}
pub fn mean_squared_error < ' graph , A , B , F : Float > ( y : A , t : B ) -> Tensor < ' graph , F > where A : AsRef < Tensor < ' graph , F > > + Copy , B : AsRef < Tensor < ' graph , F > > + Copy , { reduce_mean ( square ( y . as_ref ( ) - t . as_ref ( ) ) , & [ - 1 ] , false ) }
Computes mean squared error
Note that the mean axis is the last one.
Computes mean squared error Note that the mean axis is the last one .
y
A
t
B
y
A
t
B