Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with function returned by forward #39

Open
vargonis opened this issue Jul 19, 2019 · 0 comments
Open

Problem with function returned by forward #39

vargonis opened this issue Jul 19, 2019 · 0 comments

Comments

@vargonis
Copy link

The following code, which works well with Zygote, produces the detailed unexpected behavior:

using Flux.Tracker
f(x) = [x^2+1, -x^3]
y, back = Tracker.forward(f, 1)
back([0,1]) # (-3.0 (tracked),)
back(1) # should fail, but gives (2.0 (tracked),)
back([0,1]) # (0.0 (tracked),) (!?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant