def mean_squared_error(pred:Tensor, targ:Tensor)->Rank0Tensor:
    "Mean squared error between `pred` and `targ`."
    pred,targ = flatten_check(pred,targ)
    return F.mse_loss(pred, targ)
def mean_squared_error ( pred : Tensor , targ : Tensor ) -> Rank0Tensor : pred , targ = flatten_check ( pred , targ ) return F . mse_loss ( pred , targ )
Mean squared error between `pred` and `targ`.