added instructions to test
This commit is contained in:
parent
104b4dc1ff
commit
a186cf12dc
|
@ -1,6 +1,9 @@
|
||||||
# Pytorch-Lightning Tests
|
# Pytorch-Lightning Tests
|
||||||
|
|
||||||
## Running tests
|
## Running tests
|
||||||
|
The automatic travis tests ONLY run CPU-based tests. Although these cover most of the use cases,
|
||||||
|
run on a 2-GPU machine to validate the full test-suite.
|
||||||
|
|
||||||
|
|
||||||
To run all tests do the following:
|
To run all tests do the following:
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -163,7 +163,7 @@ def test_cpu_model_with_amp():
|
||||||
|
|
||||||
model, hparams = get_model()
|
model, hparams = get_model()
|
||||||
|
|
||||||
with pytest.raises(ModuleNotFoundError):
|
with pytest.raises((MisconfigurationException, ModuleNotFoundError)):
|
||||||
run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)
|
run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue