Skip to content

Commit

Permalink
Add base_dir parameter.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 427066377
  • Loading branch information
psc-g committed Feb 8, 2022
1 parent b279088 commit be7b31f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions balloon_learning_environment/qrdqn_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@


FLAGS = flags.FLAGS
flags.DEFINE_string('base_dir', '~/acme',
'Directory where to store statistics/images.')
flags.DEFINE_integer('num_actors', 128, 'Number of actors.')
flags.DEFINE_integer('num_episodes', 10000, 'Number of episodes to train for.')
flags.DEFINE_integer('max_episode_length', 960,
Expand Down Expand Up @@ -98,6 +100,7 @@ def get_program(params: Dict[str, Any]) -> lp.Program:
num_actors=FLAGS.num_actors,
max_number_of_steps=FLAGS.num_episodes * FLAGS.max_episode_length,
prefetch_size=config.prefetch_size,
workdir=FLAGS.base_dir,
)
return agent.build()

Expand Down

0 comments on commit be7b31f

Please sign in to comment.