main.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:atari-rl 作者: brendanator 项目源码 文件源码
def main(_):
  config = create_config()
  trainer = Trainer(config)

  # Register signal handler
  def stop_training(signum, frame):
    trainer.stop_training()

  signal.signal(signal.SIGINT, stop_training)

  if config.profile:
    import cProfile as profile
    profile.runctx('trainer.train()', globals(), locals(), 'main.prof')
  else:
    trainer.train()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号