add epoch option (#933)
This commit is contained in:
parent
4d36e76cbc
commit
932770771b
|
@ -250,6 +250,7 @@ class LightningTemplateModel(pl.LightningModule):
|
||||||
parser.add_argument('--data_root', default=os.path.join(root_dir, 'mnist'), type=str)
|
parser.add_argument('--data_root', default=os.path.join(root_dir, 'mnist'), type=str)
|
||||||
|
|
||||||
# training params (opt)
|
# training params (opt)
|
||||||
|
parser.add_argument('--epochs', default=20, type=int)
|
||||||
parser.add_argument('--optimizer_name', default='adam', type=str)
|
parser.add_argument('--optimizer_name', default='adam', type=str)
|
||||||
parser.add_argument('--batch_size', default=64, type=int)
|
parser.add_argument('--batch_size', default=64, type=int)
|
||||||
return parser
|
return parser
|
||||||
|
|
Loading…
Reference in New Issue