Flux.jl: ERROR: UndefVarError: derivative not defined

Created on 7 May 2019  路  6Comments  路  Source: FluxML/Flux.jl

When I runjulia> using Flux.Tracker: derivative... I am getting ERROR: UndefVarError: derivative not defined. I have Flux downloaded and updated.

I am trying to do the https://github.com/FluxML/model-zoo/blob/master/tutorials/60-minute-blitz.jl example on line 122.

Most helpful comment

Any idea when the 60 minute blitz will be updated?

All 6 comments

The tutorial need to be upgraded for the changes. The function was replaced by gradient to better describe what it's doing plus get API parity with Zygote moving forward.

Thanks for that!

Any idea when the 60 minute blitz will be updated?

It looks it was already @anandijain . Can this be closed?

I think so

ERROR: UndefVarError: Tracker not defined

err = hcat(Flux.Tracker.data(loss(xtrn, ytrn)), Flux.Tracker.data(loss(xtst, ytst)))
ERROR: UndefVarError: Tracker not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\Base.jl:26
[3] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1088

Julia 1.5,.windows, [do I need to add an additional tracker package?]

You might be on an older Flux version. You might want a newer release

Was this page helpful?
0 / 5 - 0 ratings