zenna / Omega.jl

Causal, Higher-Order, Probabilistic Programming
MIT License
163 stars 17 forks source link

Zygote issues #125

Open zenna opened 4 years ago

zenna commented 4 years ago
function zygotetest()
  x = normal(0, 1, (10,))
  y = sum(x)
  lineargradient(y, rand(defΩ()), ZygoteGrad)
end

Breaks because of mutation in memoization.