def test_lbfgs_cpu_model(tmpdir): """Test each of the trainer options.""" tutils.reset_seed() trainer_options = dict( default_root_dir=tmpdir, max_epochs=2, progress_bar_refresh_rate=0, weights_summary='top', train_percent_check=1.0, val_percent_check=0.2, ) model, hparams = tutils.get_default_model(lbfgs=True) tutils.run_model_test_no_loggers(trainer_options, model, min_acc=0.5)
def test_default_logger_callbacks_cpu_model(tmpdir): """Test each of the trainer options.""" tutils.reset_seed() trainer_options = dict( default_root_dir=tmpdir, max_epochs=1, gradient_clip_val=1.0, overfit_pct=0.20, progress_bar_refresh_rate=0, train_percent_check=0.01, val_percent_check=0.01, ) model, hparams = tutils.get_default_model() tutils.run_model_test_no_loggers(trainer_options, model) # test freeze on cpu model.freeze() model.unfreeze()