Trainer train simplified, tests for load (#168)
- the arguments of Trainer.train now are passed to the fit - unittest for load/restoring from checkpoint
This commit is contained in:
@@ -134,7 +134,7 @@ def test_train_cpu():
|
||||
hidden_dimension=64)
|
||||
)
|
||||
|
||||
trainer = Trainer(solver=solver, kwargs={'max_epochs' : 4, 'accelerator': 'cpu'})
|
||||
trainer = Trainer(solver=solver, max_epochs=4, accelerator='cpu')
|
||||
trainer.train()
|
||||
|
||||
def test_sample():
|
||||
|
||||
Reference in New Issue
Block a user