Skip to content

Commit

Permalink
Pass args into trainer properly
Browse files Browse the repository at this point in the history
  • Loading branch information
glinscott committed Nov 15, 2020
1 parent 01c682c commit 483491f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main():
train, val = data_loader_cc(args.train, args.val)

tb_logger = pl_loggers.TensorBoardLogger('logs/')
trainer = pl.Trainer(logger=tb_logger, gpus=args.gpus)
trainer = pl.Trainer.from_argparse_args(args, logger=tb_logger)
trainer.fit(nnue, train, val)

if __name__ == '__main__':
Expand Down

0 comments on commit 483491f

Please sign in to comment.