DoublePrecisionPlugin¶
- class pytorch_lightning.plugins.precision.DoublePrecisionPlugin[source]¶
Bases:
pytorch_lightning.plugins.precision.precision_plugin.PrecisionPlugin
Plugin for training with double (
torch.float64
) precision.- connect(model, optimizers, lr_schedulers)[source]¶
Converts the model to double precision and wraps it in a
LightningDoublePrecisionModule
to convert incoming floating point data to double (torch.float64
) precision. Does not alter optimizers or lr_schedulers.
- predict_step_context()[source]¶
A context manager to change the default tensor type. See:
torch.set_default_tensor_type()
- test_step_context()[source]¶
A context manager to change the default tensor type. See:
torch.set_default_tensor_type()