Flux v0.10.1 has no "tracked" array

Hi everyone.

I was learning Flux using the JUliaAcademy. Below is the link:

I’m facing the following problems while running this code:

  1. model.W and model.b are not tracked ones.
  2. Also, these weight and bias values are float 32 and not float 64.
  3. When I type back!(loss), it is showing UndefVarError: back! not defined
  4. When I type ?SGD, it is showing:
search: SGD AMSGrad Signed signed Unsigned unsigned sigmoid issetgid logsigmoid

Couldn't find SGD
Perhaps you meant SGD, Set, Sys, BGR, GR, RGB, GC, spy, Some, sec, sin or sum

No documentation found.

Binding SGD does not exist.

I’m using Flux v0.10.1. I think it is the version problem. Can someone tell me how to sort this and make the code run for Flux v0.10.1.

Thanking you in advance.

1 Like

Most likely this course has been recorded before Flux v0.10.0. It was a very breaking release in which Flux started using a differnt AD, Zygote.jl, instead of Tracker. You could either try porting the examples or use an older version of Flux, for example ] add Flux@0.9.0.

1 Like