mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
added init to test folder
This commit is contained in:
+13
-4
@@ -18,10 +18,6 @@ pip install -r requirements.txt
|
||||
|
||||
# run tests
|
||||
py.test
|
||||
|
||||
# or to generate coverage
|
||||
pip install coverage
|
||||
coverage run tests/test_models.py
|
||||
```
|
||||
|
||||
To test models that require GPU make sure to run the above command on a GPU machine.
|
||||
@@ -46,4 +42,17 @@ For each set up it also tests:
|
||||
4. simulated save from HPC signal.
|
||||
5. simulated load from HPC signal.
|
||||
|
||||
## Running Coverage
|
||||
|
||||
```bash
|
||||
cd pytorch-lightning
|
||||
|
||||
# generate coverage
|
||||
pip install coverage
|
||||
coverage run tests/test_models.py
|
||||
|
||||
# print coverage stats
|
||||
coverage report -m
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user