Skip to content

Commit

Permalink
added instructions to test
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 25, 2019
1 parent 104b4dc commit a186cf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Pytorch-Lightning 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:
```bash
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_cpu_model_with_amp():

model, hparams = get_model()

with pytest.raises(ModuleNotFoundError):
with pytest.raises((MisconfigurationException, ModuleNotFoundError)):
run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)


Expand Down

0 comments on commit a186cf1

Please sign in to comment.