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
Argument init
in get_parameter
is not optional
#588
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Jan 10, 2023
Fixes #588. PiperOrigin-RevId: 500935075
Thank you Hylke, I'll fix this for the next release of Haiku. For now you can work around this by passing in a throwing initializer:
|
copybara-service bot
pushed a commit
that referenced
this issue
Jan 10, 2023
Fixes #588. PiperOrigin-RevId: 500935075
Great, thanks a lot! |
copybara-service bot
pushed a commit
that referenced
this issue
Jan 10, 2023
Fixes #588. PiperOrigin-RevId: 500935075
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
According to the docs, the
init
argument ofget_parameter
is optional, while in reality it raises the error:ValueError: Initializer must be specified.
(See line 496 in base.py.)
Example
An example where the
init=None
might occur is if the initialisation is done outside Haiku.For example:
Kind regards,
Hylke
The text was updated successfully, but these errors were encountered: