Release/0.9 (#141)
* add flake8 and prettier to pre-commit-config * add setup.cfg * add workers=True to seed_everything() * update lightning badge logo * bump package versions * update README.md * add __init__.py files * add more logger configs parameters * add default Dockerfile * change .env.template to .env.example * move inference example to readme * remove img_dataset.py * simplify names of wandb callbacks * remove wandb test marker * format files with prettier
This commit is contained in:
1 parent
023d4bdecc
commit
70ab061f75
49 files changed
+473
-415
No files matched your search
@@ -0,0 +1,47 @@
|
||||
from tests.helpers.run_command import run_command
|
||||
from tests.helpers.runif import RunIf
|
||||
|
||||
|
||||
@RunIf(amp_apex=True)
|
||||
def test_apex_01():
|
||||
"""Test mixed-precision level 01."""
|
||||
command = [
|
||||
"run.py",
|
||||
"trainer=default",
|
||||
"trainer.max_epochs=1",
|
||||
"trainer.gpus=1",
|
||||
"trainer.amp_backend=apex",
|
||||
"trainer.amp_level=O1",
|
||||
"trainer.precision=16",
|
||||
]
|
||||
run_command(command)
|
||||
|
||||
|
||||
@RunIf(amp_apex=True)
|
||||
def test_apex_02():
|
||||
"""Test mixed-precision level 02."""
|
||||
command = [
|
||||
"run.py",
|
||||
"trainer=default",
|
||||
"trainer.max_epochs=1",
|
||||
"trainer.gpus=1",
|
||||
"trainer.amp_backend=apex",
|
||||
"trainer.amp_level=O2",
|
||||
"trainer.precision=16",
|
||||
]
|
||||
run_command(command)
|
||||
|
||||
|
||||
@RunIf(amp_apex=True)
|
||||
def test_apex_03():
|
||||
"""Test mixed-precision level 03."""
|
||||
command = [
|
||||
"run.py",
|
||||
"trainer=default",
|
||||
"trainer.max_epochs=1",
|
||||
"trainer.gpus=1",
|
||||
"trainer.amp_backend=apex",
|
||||
"trainer.amp_level=O3",
|
||||
"trainer.precision=16",
|
||||
]
|
||||
run_command(command)
|
||||
Reference in new issue
Block a user