-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
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
Make it easier to pass empty state st = (;)
#118
Comments
Actually, the other ones should be annotated with |
At least the PR passes the tests 🤷 Since that |
Do you want a PR that does the change in the reverse direction, and annotates all |
It's not breaking,
Its because the layers use the correct structure. The failure will only occur if we pass an incorrectly structured nt. |
Speaking of tests, are the tests setup and working properly? |
That's just an untested code path. |
OK, so let's close this? One day, I'll make a PR to Lux that gets accepted 💪 |
Hi there!
I am writing code with stateless neural networks, and I would like to be able to pass
st = (;)
(emptyNamedTuple
) everywhere instead of remembering the state from theLux.setup
funtion.Judging by the code in
layers/basic.jl
, it should work with every layer... exceptChain
because of this line, wherest
is annotated as aNamedTuple{fields}
instead of aNamedTuple
. Is there a specific reason for this?The text was updated successfully, but these errors were encountered: