SingleTPUPlugin¶
-
class
pytorch_lightning.plugins.training_type.
SingleTPUPlugin
(device, debug=False)[source]¶ Bases:
pytorch_lightning.plugins.training_type.single_device.SingleDevicePlugin
Plugin for training on a single TPU device.
-
on_save
(checkpoint)[source]¶ Move XLA tensors to CPU before saving Recommended on XLA Guide: https://github.com/pytorch/xla/blob/master/API_GUIDE.md#saving-and-loading-xla-tensors
- Return type
-