mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
refactored model tests
This commit is contained in:
@@ -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__))
|
||||
|
||||
Reference in New Issue
Block a user