train.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:human-rl 作者: gsastry 项目源码 文件源码
def run():
    args = parser.parse_args()
    cmds, notes = create_commands(
        "a3c",
        args.num_workers,
        args.remotes,
        args.env_id,
        args.log_dir,
        mode=args.mode,
        hparams=hparams.get_hparams(args, ignore_default=True))
    if args.dry_run:
        print("Dry-run mode due to -n flag, otherwise the following commands would be executed:")
    else:
        print("Executing the following commands:")
    print("\n".join(cmds))
    print("")
    if not args.dry_run:
        if args.mode == "tmux":
            os.environ["TMUX"] = ""
        os.system("\n".join(cmds))
    print('\n'.join(notes))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号