Skip to content

Conversation

@neggert
Copy link
Contributor

@neggert neggert commented Jan 21, 2020

  • Fix test_multi_gpu_none_backend. Test was expecting an exception, but this has been changed to a warning in the code. Updated test to reflect this.
  • Fix TestTubeLogger so that close doesn't get called when debug=True

With these fixes, all tests are passing for me.

We now throw a warning instead of an exception. Update test
to reflect this.
@neggert
Copy link
Contributor Author

neggert commented Jan 21, 2020

================================================= 113 passed, 40 warnings in 1387.54s (0:23:07) =================================================
Name                                                    Stmts   Miss  Cover   Missing
-------------------------------------------------------------------------------------
pytorch_lightning/__init__.py                              18      2    89%   23-24
pytorch_lightning/callbacks/__init__.py                     2      0   100%
pytorch_lightning/core/__init__.py                          2      0   100%
pytorch_lightning/core/decorators.py                        8      0   100%
pytorch_lightning/core/grads.py                            16      0   100%
pytorch_lightning/core/hooks.py                            21      2    90%   151-152
pytorch_lightning/core/lightning.py                       129      5    96%   675, 898, 1045, 1113, 1222
pytorch_lightning/core/memory.py                          115      5    96%   42, 56, 63-67
pytorch_lightning/core/model_saving.py                      1      0   100%
pytorch_lightning/core/root_module.py                       1      0   100%
pytorch_lightning/core/saving.py                            5      0   100%
pytorch_lightning/logging/__init__.py                      22      0   100%
pytorch_lightning/logging/base.py                          20      0   100%
pytorch_lightning/logging/comet.py                         54     12    78%   80-81, 83-84, 100-101, 107-108, 127, 152, 158, 166
pytorch_lightning/logging/comet_logger.py                   1      0   100%
pytorch_lightning/logging/mlflow.py                        42      6    86%   78, 97-100, 108-110
pytorch_lightning/logging/mlflow_logger.py                  1      0   100%
pytorch_lightning/logging/neptune.py                       69     19    72%   140-141, 185, 190, 194, 219-222, 233-236, 248-251, 262, 272, 284-286
pytorch_lightning/logging/tensorboard.py                   56      1    98%   81
pytorch_lightning/logging/test_tube.py                     52      0   100%
pytorch_lightning/logging/test_tube_logger.py               1      0   100%
pytorch_lightning/logging/wandb.py                         40     14    65%   48-52, 66-69, 75, 79, 83-84, 91-93
pytorch_lightning/overrides/__init__.py                     0      0   100%
pytorch_lightning/overrides/data_parallel.py               21      2    90%   57-59
pytorch_lightning/overrides/override_data_parallel.py       1      0   100%
pytorch_lightning/pt_overrides/__init__.py                  1      0   100%
pytorch_lightning/root_module/__init__.py                   1      0   100%
pytorch_lightning/testing/__init__.py                       3      0   100%
pytorch_lightning/testing/model.py                          6      1    83%   13
pytorch_lightning/testing/model_base.py                    68      3    96%   132, 165-166
pytorch_lightning/testing/model_mixins.py                 161     26    84%   50-54, 130, 134-135, 144-155, 186, 192, 243-247, 314, 318-319, 328-339, 365, 371
pytorch_lightning/trainer/__init__.py                       2      0   100%
pytorch_lightning/trainer/auto_mix_precision.py            10      0   100%
pytorch_lightning/trainer/callback_config.py               38      8    79%   13-15, 34, 40, 51, 63-64
pytorch_lightning/trainer/data_loading.py                  80      8    90%   33-37, 58, 69-70, 216
pytorch_lightning/trainer/distrib_data_parallel.py        107     26    76%   139-146, 181, 235-236, 250-251, 279-280, 303, 316-317, 321, 325, 335-341
pytorch_lightning/trainer/distrib_parts.py                 95     15    84%   360-368, 438-439, 454-462, 467
pytorch_lightning/trainer/evaluation_loop.py              109     24    78%   140-161, 271, 290
pytorch_lightning/trainer/ignored_warnings.py               0      0   100%
pytorch_lightning/trainer/logging.py                       84      3    96%   35-36, 64
pytorch_lightning/trainer/model_hooks.py                   15      2    87%   23-24
pytorch_lightning/trainer/trainer.py                      214     33    85%   426-427, 436-437, 450-451, 458-459, 466-467, 477-483, 562-563, 591-600, 607-613, 684-685, 732, 778
pytorch_lightning/trainer/training_io.py                  173     30    83%   114-126, 160, 191, 219, 224-226, 229-249
pytorch_lightning/trainer/training_loop.py                214     49    77%   176-213, 289, 312, 315, 339-345, 568-569, 599-600
pytorch_lightning/trainer/training_tricks.py               19      1    95%   13
pytorch_lightning/utilities/__init__.py                     0      0   100%
pytorch_lightning/utilities/debugging.py                    1      0   100%
-------------------------------------------------------------------------------------
TOTAL                                                    2099    297    86%

@williamFalcon williamFalcon merged commit dfb6d36 into Lightning-AI:master Jan 21, 2020
@williamFalcon
Copy link
Contributor

@neggert amazing job!

williamFalcon added a commit that referenced this pull request Jan 21, 2020
* implement forward and update args (#709)

Fixes the following issues as discussed in issue #709

1) Implement forward method wrapped.
2) Set default value for seed. "None" breaks tensorboard.
3) Update redundant hparams.data to new hparams.data_path.
4) Update 'use-16bit' to 'use_16bit' to maintain consistency.

* Fix failing GPU tests (#722)

* Fix distributed_backend=None test

We now throw a warning instead of an exception. Update test
to reflect this.

* Fix test_tube logger close when debug=True

* Clean docs (#725)

* updated gitignore

* updated gitignore

* updated links in ninja file

* updated docs

* finished callbacks

* finished callbacks

* finished callbacks

* fixed left menu

* added callbacks to menu

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* updated gitignore

* updated links in ninja file

* updated docs

* finished callbacks

* finished callbacks

* finished callbacks

* fixed left menu

* added callbacks to menu

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* finished rebase

* making private  members

* making private  members

* making private  members

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* set auto dp if no backend

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* fixed lightning import

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* finished lightning module

* finished lightning module

* finished lightning module

* finished lightning module

* added callbacks

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* set auto dp if no backend

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* flake 8

* flake 8

* fix docs path

* updated gitignore

* updated gitignore

* updated links in ninja file

* updated docs

* finished callbacks

* finished callbacks

* finished callbacks

* fixed left menu

* added callbacks to menu

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* updated gitignore

* updated docs

* finished callbacks

* finished callbacks

* finished callbacks

* fixed left menu

* added callbacks to menu

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* added direct links to docs

* finished rebase

* making private  members

* making private  members

* making private  members

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* set auto dp if no backend

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* working on trainer docs

* fixed lightning import

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* cleared  spaces

* finished lightning module

* finished lightning module

* finished lightning module

* finished lightning module

* added callbacks

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* added loggers

* flake 8

* flake 8

* fix docs path

* flake 8

* Update theme_variables.jinja

* implement forward and update args (#709)

Fixes the following issues as discussed in issue #709

1) Implement forward method wrapped.
2) Set default value for seed. "None" breaks tensorboard.
3) Update redundant hparams.data to new hparams.data_path.
4) Update 'use-16bit' to 'use_16bit' to maintain consistency.

* use self.forward for val step (#709)

Co-authored-by: Nic Eggert <nic@eggert.io>
Co-authored-by: William Falcon <waf2107@columbia.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants