change default behavior of check_gradients to not print