def main(_): config = build_experiment_config() # Evaluation is disabled for performance reasons. Set `num_eval_episodes` to # a positive number and remove `evaluator_factories=[]` to enable it. if FLAGS.run_distributed: program = experiments.make_distributed_experiment( experiment=config, num_actors=4) lp.launch(program, xm_resources=lp_utils.make_xm_docker_resources(program)) else: experiments.run_experiment(experiment=config, num_eval_episodes=0)
def main(_): config = build_experiment_config() if FLAGS.run_distributed: program = experiments.make_distributed_experiment( experiment=config, num_actors=4) lp.launch(program, xm_resources=lp_utils.make_xm_docker_resources(program)) else: experiments.run_experiment( experiment=config, eval_every=FLAGS.eval_every, num_eval_episodes=FLAGS.evaluation_episodes)