-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Allowing passing kwargs #24692
Allowing passing kwargs #24692
Conversation
Allowing passing kwargs (e.g., `temperature`) to child distributions. Least effort modification, but will break for distros that don't accept the same init keywords. Other options include pass-through kwargs or extending with `child_kwargs`...
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.
I'm fine with this change for the most part -- We're going to be changing the way that models and policies are defined so that its a much more flexible and natural experience -- we'll share more details on those changes soon.
you'll need to run the linting script that we have from the base ray directory |
Looks good. Thanks for the fix @nmatare . I just cleaned up the LINT errors. Waiting for tests to pass again ... |
Ah, thanks for the linting hint. Will apply that for next time. Yeah, it's not really robust to different init keywords for child distros. The kwargs will break the code in that case. But since this is all going to change anyway, I'm looking forward to the new API! |
I don't think there is a strong reason to backport. |
Allowing passing kwargs (e.g.,
temperature
) to child distributions.Least effort modification, but will break for distros that don't accept the same init keywords. Other options include pass-through kwargs or extending with
child_kwargs
...Why are these changes needed?
So that you can pass keywords to child distributions.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.