draugr.torch_utilities.optimisation.debugging.gradients.checking.numerical_gradient

Created on 29/07/2020

Functions

loss_grad_check(model, loss_fn, iinput, target)

two sided gradient numerical approximation DOES not work, please refer to torch/autograd/gradcheck.py