denizyuret / AutoGrad.jl

Julia port of the Python autograd package.
Other
169 stars 26 forks source link

Tape confusion fix #75

Closed MikeInnes closed 6 years ago

MikeInnes commented 6 years ago

This fixes a silent bug where

grad(x -> x*grad(y -> x+y)(x))(5.0) == 2
grad(x -> x*grad(y -> x+y)(1x))(5.0) == 1

(the correct answer is 1).

denizyuret commented 6 years ago

Manually merged, thanks.