on_post_move_to_device is leaky #8736
-
The decorator here is leaky: https://github.com/PyTorchLightning/pytorch-lightning/blob/963c26764682fa4cf64c93c5a7572ae0040e9c32/pytorch_lightning/core/decorators.py#L73-L108 It assumes it is called with the is only called by the TPU backend. Is it intended to be called by other plugins? Since this is under the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This hook is intended only for TPU as TPU don't support tying parameters on cpu. However, I believe we could actually depreciate it once #8555 is implemented. |
Beta Was this translation helpful? Give feedback.
This hook is intended only for TPU as TPU don't support tying parameters on cpu.
However, I believe we could actually depreciate it once #8555 is implemented.