Flux:the trainable parameter is empty

Running exactly your code above:

julia> Flux.params(m)
Params([Float32[1.1857293 -0.41868022]])

Can you replicate this on a fresh Julia session? If so, what versions of Flux, Zygote, Julia, etc. are you running?

1 Like