Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 9e8f6b5

Browse files
author
Błażej O
committed
Decreasing memory footprint of rl test.
1 parent d435ee8 commit 9e8f6b5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tensor2tensor/rl/rl_trainer_lib_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@
2525

2626
class TrainTest(tf.test.TestCase):
2727

28+
test_config = ("epochs_num=4,eval_every_epochs=3,video_during_eval=False,"
29+
"num_agents=5,optimization_epochs=5,epoch_length=50")
30+
2831
def test_no_crash_pendulum(self):
2932
hparams = trainer_lib.create_hparams(
30-
"continuous_action_base", "epochs_num=11,video_during_eval=False")
33+
"continuous_action_base",
34+
TrainTest.test_config)
3135
rl_trainer_lib.train(hparams, "Pendulum-v0")
3236

3337
def test_no_crash_cartpole(self):
3438
hparams = trainer_lib.create_hparams(
35-
"discrete_action_base", "epochs_num=11,video_during_eval=False")
39+
"discrete_action_base",
40+
TrainTest.test_config)
3641
rl_trainer_lib.train(hparams, "CartPole-v0")
3742

3843

0 commit comments

Comments
 (0)