Tests (#131)
* add smoke tests implemented with pytest * add sweep tests, wandb tests and mixed-precision tests * update requirements.txt * remove .autoenv.template file * update readme
This commit is contained in:
1 parent
5cc767a595
commit
e0293193f5
30 files changed
+572
-280
No files matched your search
@@ -0,0 +1,32 @@
|
||||
from tests.helpers.run_command import run_command
|
||||
|
||||
|
||||
def test_default_sweep():
|
||||
"""Test default Hydra sweeper."""
|
||||
command = [
|
||||
"run.py",
|
||||
"-m",
|
||||
"datamodule.batch_size=64,128",
|
||||
"model.lr=0.01,0.02",
|
||||
"trainer=default",
|
||||
"trainer.fast_dev_run=true",
|
||||
]
|
||||
run_command(command)
|
||||
|
||||
|
||||
def test_optuna_sweep():
|
||||
"""Test Optuna sweeper."""
|
||||
command = [
|
||||
"run.py",
|
||||
"-m",
|
||||
"hparams_search=mnist_optuna",
|
||||
"trainer=default",
|
||||
"trainer.fast_dev_run=true",
|
||||
]
|
||||
run_command(command)
|
||||
|
||||
|
||||
# def test_ax_sweep():
|
||||
# """Test Ax sweeper."""
|
||||
# command = ["run.py", "-m", "hparams_search=mnist_ax", "trainer.fast_dev_run=true"]
|
||||
# run_command(command)
|
||||
Reference in new issue
Block a user