Created by: willthefrog
The function 'check_grad' for large inputs is too slow, however it is desirable to cover the forward implementation.