mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-24 13:50:25 +08:00
Fixing tests (#936)
* abs import * rename test model * update trainer * revert test_step check * move tags * fix test_step * clean tests * fix template * update dataset path * fix parent order
This commit is contained in:
@@ -90,7 +90,7 @@ def run_model_test(trainer_options, model, on_gpu=True):
|
||||
|
||||
|
||||
def get_hparams(continue_training=False, hpc_exp_number=0):
|
||||
root_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
tests_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
args = {
|
||||
'drop_prob': 0.2,
|
||||
@@ -98,7 +98,7 @@ def get_hparams(continue_training=False, hpc_exp_number=0):
|
||||
'in_features': 28 * 28,
|
||||
'learning_rate': 0.001 * 8,
|
||||
'optimizer_name': 'adam',
|
||||
'data_root': os.path.join(root_dir, 'mnist'),
|
||||
'data_root': os.path.join(tests_dir, 'datasets'),
|
||||
'out_features': 10,
|
||||
'hidden_dim': 1000,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user