You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are trying to copy a NamedTuple which is undefined. You need to use Functors for that.
using Functors
nt = (;a =randn(10), b =randn(2))
fmap(copy, nt)
Also, Lux guarantees that parameters are not updated in-place, so unless sciml_train does in-place update of thetas (I don't remember what it does), you shouldn't need copy
It doesn't do an inplace update of the thetas, so the copy isn't necessary. But indeed this is unrelated to the package and has two fixes mentioned, so I'll close.
My question
I am sure that the error is not in
push!(θs, copy(θ))
Maybe I should use the new version. But I could not know the corresponding code......
Here is the error
Here is the code after changed
The text was updated successfully, but these errors were encountered: