XLAPrecision
- class lightning.pytorch.plugins.precision.XLAPrecision(precision='32-true')
Bases:
PrecisionPlugin for training with XLA.
- Parameters:
precision (
Literal['32-true','16-true','bf16-true']) – Full precision (32-true) or half precision (16-true, bf16-true).- Raises:
ValueError – If unsupported
precisionis provided.
- optimizer_step(optimizer, model, closure, **kwargs)
Hook to run the optimizer step.
- Return type:
- teardown()
This method is called to teardown the training process.
It is the right place to release memory and free other resources.
- Return type:
Was this page helpful?
Thanks for the feedback.