lightning/pytorch_lightning/core
Adrian Wälchli 22d9464e56
HenryJia: auto-move data decorator (#1905)
* First attempt at auto-moving data for inference

* Correct my copypaste errors

* Correct for if device is CPU

* Get rid of the WIP code I accidentally added

* Add tests

* Make tests more foolproof

* Make sure we stick with pep8 formatting

* Clarify docs a little

* Apply suggestions from code review

* Get everything working again hopefully

* refactor and added hook


variant a


variant b


add test


revert rename


add changelog


docs

* move changelog entry to top

* Move data transfer to utilities

* Add back in warnings for autotransfer

* Get rid of the test code I ended up accidentally commiting again

* Add docs any changelog

* Correct PR number in Changelog

* Correct changelog

* Update data.py

* Update test_cpu.py

* make a decorator

* type hint

* changelog

* changelog

* remove old function

* import

* test for decorator

* fix test

* remove old test

* doctest

* apply decorator directly

* convert doctest to code block

* prevent side effects in tests

* fix merge

* update forward docs

* update docs

* added docs in section "deployment / prediction"

* update changelog

Co-authored-by: Hengjian Jia <henryjia18@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: William Falcon <waf2107@columbia.edu>
2020-06-15 17:04:32 -04:00
..
__init__.py Improved docs for pytorch_lightning.core (continued) (#1483) 2020-04-16 12:04:55 -04:00
decorators.py HenryJia: auto-move data decorator (#1905) 2020-06-15 17:04:32 -04:00
grads.py Rework of Sklearn Metrics (#1327) 2020-06-10 15:43:12 +02:00
hooks.py remove deprecated API for v0.8 (#2073) 2020-06-12 14:37:52 -04:00
lightning.py HenryJia: auto-move data decorator (#1905) 2020-06-15 17:04:32 -04:00
memory.py Improved docs for pytorch_lightning.core (continued) (#1483) 2020-04-16 12:04:55 -04:00
saving.py past checkpoints (#2160) 2020-06-14 11:36:45 -04:00