dfdx / Espresso.jl

Expression transformation package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using tracked data creates global variables

dfdx opened this issue · comments

g = ExGraph(:(sum(W * x + b)); ctx=Dict(:method => :track), W=rand(3,4), x=rand(4,5), b=rand(3))
print(W)

The problem is in eval_tracked! which evaluates expression in global scope.