We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems like Optimisers only works with vectors.
struct WithFloat val :: Float64 end @functor WithFloat
The call to Optimisers.trainable(WithFloat(4)) returns (val = 4.3,), but destructure(WithFloat(4)) produces an empty vector.
Optimisers.trainable(WithFloat(4))
(val = 4.3,)
destructure(WithFloat(4))
Would you accept a pull request allowing destructure to handle scalar parameters?
destructure
The text was updated successfully, but these errors were encountered:
It's not so straightforward, unfortunately. See FluxML/Flux.jl#1991 (comment) and #33.
Sorry, something went wrong.
No branches or pull requests
It seems like Optimisers only works with vectors.
The call to
Optimisers.trainable(WithFloat(4))
returns(val = 4.3,)
, butdestructure(WithFloat(4))
produces an empty vector.Would you accept a pull request allowing
destructure
to handle scalar parameters?The text was updated successfully, but these errors were encountered: