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

Constant functions error #48

Open
mohamed82008 opened this issue Sep 22, 2019 · 0 comments
Open

Constant functions error #48

mohamed82008 opened this issue Sep 22, 2019 · 0 comments

Comments

@mohamed82008
Copy link
Collaborator

julia> Tracker.gradient((x)->(1.0), [0.5])
ERROR: MethodError: no method matching back!(::Float64)
Closest candidates are:
  back!(::Any, ::Any; once) at C:\Users\user\.julia\packages\Tracker\SAr25\src\back.jl:75
  back!(::Tracker.TrackedReal; once) at C:\Users\user\.julia\packages\Tracker\SAr25\src\lib\real.jl:14
  back!(::TrackedArray) at C:\Users\user\.julia\packages\Tracker\SAr25\src\lib\array.jl:68
Stacktrace:
 [1] gradient_(::Function, ::Array{Float64,1}) at C:\Users\user\.julia\packages\Tracker\SAr25\src\back.jl:4
 [2] #gradient#24 at C:\Users\user\.julia\packages\Tracker\SAr25\src\back.jl:164 [inlined]
 [3] gradient(::Function, ::Array{Float64,1}) at C:\Users\user\.julia\packages\Tracker\SAr25\src\back.jl:164
 [4] top-level scope at none:0
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