Good paper recommended here (https://discourse.julialang.org/t/learning-automatic-differentiation/56158/3)
https://www.jmlr.org/papers/volume18/17-468/17-468.pdf