refactored model tests

This commit is contained in:
William Falcon
2019-07-24 12:04:48 -04:00
parent de95179556
commit e5f73304b3
+4 -4
View File
@@ -15,9 +15,9 @@ torch.manual_seed(SEED)
np.random.seed(SEED)
# -----------------
# ------------------------------------------------------------------------
# TESTS
# -----------------
# ------------------------------------------------------------------------
def test_cpu_model():
"""
Make sure model trains on CPU
@@ -222,9 +222,9 @@ def test_amp_gpu_ddp():
clear_save_dir()
# -----------------
# ------------------------------------------------------------------------
# UTILS
# -----------------
# ------------------------------------------------------------------------
def get_model():
# set up model with these hyperparams
root_dir = os.path.dirname(os.path.realpath(__file__))