2020-12-21 06:35:01 +00:00
|
|
|
.PHONY: test clean
|
2020-11-12 09:25:31 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
# install APEX, see https://github.com/NVIDIA/apex#linux
|
|
|
|
# to imitate SLURM set only single node
|
|
|
|
export SLURM_LOCALID=0
|
|
|
|
|
|
|
|
# use this to run tests
|
|
|
|
rm -rf _ckpt_*
|
|
|
|
rm -rf ./lightning_logs
|
|
|
|
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests pl_examples -v --flake8
|
|
|
|
python -m coverage report -m
|
|
|
|
|
|
|
|
# specific file
|
|
|
|
# python -m coverage run --source pytorch_lightning -m py.test --flake8 --durations=0 -v -k
|
2020-12-21 06:35:01 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
# clean all temp runs
|
|
|
|
rm -rf $(shell find . -name "mlruns" )
|