lightning/pytorch_lightning
Stef | ステフ 9cfd29946a
move example inputs to correct device when tracing module (#4360)
* use move_data_to_device instead of to; docstring also allow tuple of Tensor; not supported log error when example_inputs is a dict; commented docstring trace example

* Use isinstance to check if example_inputs is a Mapping, instead of type

Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>

* import Mapping for isinstance check

* multi-line docstring code to test TorchScript trace()

* Fix PEP8 f-string is missing placeholders

* minor code style improvements

* Use (possibly user overwritten) transfer_batch_to_device instead of move_data_to_device

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* fixed weird comment about trace() log error

* Remove unused import

Co-authored-by: Jeff Yang <ydcjeff@outlook.com>

* Remove logger warning about dict not example_inputs not supported by trace

Co-authored-by: stef-ubuntu <stef@webempath.com>
Co-authored-by: Justus Schock <12886177+justusschock@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
2020-10-29 11:16:57 +05:30
..
accelerators Set correct device ids in DDP [wip] (#4297) 2020-10-24 17:33:47 -04:00
callbacks add option to log momentum (#4384) 2020-10-28 21:56:58 +05:30
cluster_environments Drone: use nightly build cuda docker images (#3658) 2020-10-26 10:47:09 +00:00
core move example inputs to correct device when tracing module (#4360) 2020-10-29 11:16:57 +05:30
distributed notices (#4118) 2020-10-13 07:18:07 -04:00
loggers feat(wandb): log in sync with Trainer step (#4405) 2020-10-29 01:07:06 +05:30
metrics [Metrics] Fix/4237 auc unstable reorder (#4281) 2020-10-25 10:26:40 +01:00
overrides removed support for EvalResult and TrainResult (#3968) 2020-10-07 22:39:16 -04:00
plugins Enable DDP Plugin to pass through args to LightningDistributedDataParallel (#4382) 2020-10-27 12:27:59 +00:00
profiler feature: Allow str arguments in Trainer.profiler (#3656) 2020-10-27 16:27:16 +05:30
trainer Add optimizer hooks in callbacks (#4379) 2020-10-28 13:15:22 +01:00
tuner CI: add flake8 (#4239) 2020-10-19 21:20:17 +01:00
utilities feature: Allow str arguments in Trainer.profiler (#3656) 2020-10-27 16:27:16 +05:30
__init__.py Update __init__.py 2020-10-27 18:15:26 -04:00
py.typed make PyTorch Lightning PEP 561 Compliant (#3187) 2020-09-09 13:37:03 -04:00