Skip to content

Commit

Permalink
make ci faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Mar 6, 2022
1 parent 4313d1b commit 77ae3c9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/offline/test_gail.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_gail(args=get_args()):
buffer = gather_data()
env = gym.make(args.task)
if args.reward_threshold is None:
default_reward_threshold = {"Pendulum-v0": -1000, "Pendulum-v1": -1000}
default_reward_threshold = {"Pendulum-v0": -1100, "Pendulum-v1": -1100}
args.reward_threshold = default_reward_threshold.get(
args.task, env.spec.reward_threshold
)
Expand Down Expand Up @@ -224,10 +224,5 @@ def save_checkpoint_fn(epoch, env_step, gradient_step):
print(f"Final reward: {rews.mean()}, length: {lens.mean()}")


def test_gail_resume(args=get_args()):
args.resume = True
test_gail(args)


if __name__ == '__main__':
test_gail()

0 comments on commit 77ae3c9

Please sign in to comment.