check_gradients

Function check_gradients 

Source
pub fn check_gradients<F>(
    tensor: &Tensor,
    loss_fn: F,
    epsilon: f32,
    tolerance: f32,
) -> (f32, f32, bool)
where F: Fn(&Tensor) -> Tensor,