-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[RLlib] Split AddStates...
connectors into 2 pieces (AddTimeDimToBatchAndZeroPad
and AddStatesFromEpisodesToBatch
)
#49835
[RLlib] Split AddStates...
connectors into 2 pieces (AddTimeDimToBatchAndZeroPad
and AddStatesFromEpisodesToBatch
)
#49835
Conversation
…t_state_connectors_into_2
…t_state_connectors_into_2
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. Its a good choice to separate concerns here.
@@ -2977,6 +2977,16 @@ def log_result(self, result: ResultDict) -> None: | |||
|
|||
@override(Trainable) | |||
def cleanup(self) -> None: | |||
# Stop all Learners. | |||
if hasattr(self, "learner_group") and self.learner_group is not None: | |||
self.learner_group.shutdown() |
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.
This does sometimes not work. At least in my workspace running on GPU a algo.stop()
did not pull down the BackendExecutor
workers.
…t_state_connectors_into_2
…nto split_state_connectors_into_2
Split
AddStates...
connectors into 2 pieces (AddTimeDimToBatchAndZeroPad
andAddStatesFromEpisodesToBatch
)Why are these changes needed?
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.