-
Notifications
You must be signed in to change notification settings - Fork 373
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
feature(luyd): add collector logging in new pipeline #735
Conversation
@@ -98,6 +108,59 @@ def rolloutor(policy: Policy, env: BaseEnvManager, transitions: TransitionList) | |||
|
|||
env_episode_id = [_ for _ in range(env.env_num)] | |||
current_id = env.env_num | |||
timer = EasyTimer() | |||
last_train_iter = 0 |
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.
no tensorboard
env: BaseEnvManager, | ||
transitions: TransitionList, | ||
collect_print_freq=100, | ||
tb_logger=None, |
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.
no tensorboard
else: | ||
logger, tb_logger = build_logger(path='./{}/log/{}'.format(exp_name, instance_name), name=instance_name) | ||
|
||
def output_log(train_iter: int) -> None: |
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.
move to outside of function
policy: Policy, | ||
env: BaseEnvManager, | ||
transitions: TransitionList, | ||
collect_print_freq=100, |
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.
typing
Description
add feature of logging in collector while using new pipeline.
Related Issue
#723
TODO
Check List