From d1ab6679deda46ff45a960b52264d4441c5fd1a4 Mon Sep 17 00:00:00 2001 From: huangshiyu Date: Mon, 8 May 2023 17:13:13 +0800 Subject: [PATCH 1/2] fix: PPONet parse_args for colab --- .github/workflows/unit_test.yml | 2 +- openrl/modules/common/ppo_net.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 62fae9e4..8fd47233 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -9,7 +9,7 @@ jobs: if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" strategy: matrix: - python-version: [ 3.8 ] + python-version: [ 3.8 3.11 ] steps: - uses: actions/checkout@v3 diff --git a/openrl/modules/common/ppo_net.py b/openrl/modules/common/ppo_net.py index 93ae7a2d..96907310 100644 --- a/openrl/modules/common/ppo_net.py +++ b/openrl/modules/common/ppo_net.py @@ -41,7 +41,7 @@ def __init__( if cfg is None: cfg_parser = create_config_parser() - cfg = cfg_parser.parse_args() + cfg = cfg_parser.parse_args([]) set_seed(cfg.seed) env.reset(seed=cfg.seed) From 38d196c14589820009087527068ad71b7a4aa334 Mon Sep 17 00:00:00 2001 From: huangshiyu Date: Mon, 8 May 2023 17:15:01 +0800 Subject: [PATCH 2/2] update --- .github/workflows/unit_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 8fd47233..6af062de 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -9,7 +9,7 @@ jobs: if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" strategy: matrix: - python-version: [ 3.8 3.11 ] + python-version: [ 3.8, 3.11 ] steps: - uses: actions/checkout@v3