lightning/tests/utilities
Sean Naren 0c370ade51 [BUG] Check environ before selecting a seed to prevent warning message (#4743)
* Check environment var independently to selecting a seed to prevent unnecessary warning message

* Add if statement to check if PL_GLOBAL_SEED has been set

* Added seed test to ensure that the seed stays the same, in case

* if

* Delete global seed after test has finished

* Fix code, add tests

* Ensure seed does not exist before tests start

* Refactor test based on review, add log call

* Ensure we clear the os environ in patched dict

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: chaton <thomas@grid.ai>
(cherry picked from commit 635df27880)
2021-01-26 14:28:47 +01:00
..
__init__.py New metric classes (#1326) (#1877) 2020-05-19 11:05:07 -04:00
distributed.py Fixed PYTHONPATH for ddp test model (#4528) 2020-12-05 20:09:47 +00:00
test_all_gather_grad.py Bugfix/all gather (#5221) 2021-01-09 07:37:44 -05:00
test_apply_func.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_apply_func_torchtext.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_argparse_utils.py Unify names in Utils (#5199) 2020-12-22 00:23:33 +01:00
test_dtype_device_mixin.py Fix pre-commit isort failure on tests/utilities/*.py (#5420) 2021-01-11 14:00:39 -05:00
test_imports.py fix import and typo in AMP (#4871) 2020-11-26 23:45:52 +01:00
test_parsing.py fix/enable - check F401 (#5201) 2020-12-21 10:15:04 +01:00
test_seed.py [BUG] Check environ before selecting a seed to prevent warning message (#4743) 2021-01-26 14:28:47 +01:00
test_upgrade_checkpoint.py Fix pre-commit isort failure on tests/utilities/*.py (#5420) 2021-01-11 14:00:39 -05:00
test_xla_device_utils.py Fix pre-commit isort failure on tests/utilities/*.py (#5420) 2021-01-11 14:00:39 -05:00