@@ -18,6 +20,61 @@ from .callbacks import LoggingCallback
logger=logging.getLogger(__name__)
classAcceleratorProcessor:
"""This class is used to convert torch devices into lightning accelerators
and vice versa, as they do not use the same conventions."""
def__init__(self):
# Note: "auto" is a valid accelerator in lightning, but there doesn't seem to be a way to check which accelerator it will actually use so we don't take it into account for now.