FluxML / FluxML/Tracker.jl

Problem with function returned by forward

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
54
Forks
37
Avg merge
5h 49m
Merged PRs (30d)
1

Description

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),) (!?)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.