-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add dicts to initializer field types for combiners #1476
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple small things.
ludwig/utils/schema_utils.py
Outdated
{ | ||
"type": "object", | ||
"properties": { | ||
"type": { "type": "string" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should type also be one of the list of initializer_registry
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Creates a marshmallow field
InitializerOrDict
modeled afterEmbed
andInitializerOptions
that allows valid initializer strings or dicts with a 'type' parameter (ref - seeinitializer
description). Setsweights_initializer
andbias_initializer
fields incombiners.py
to use this instead ofInitializerOptions
Having some Torch issues locally, but hopefully tests pass here...