diff --git a/src/lightning/fabric/accelerators/registry.py b/src/lightning/fabric/accelerators/registry.py index 539b7aa8a01dc..d0bfcdd43178c 100644 --- a/src/lightning/fabric/accelerators/registry.py +++ b/src/lightning/fabric/accelerators/registry.py @@ -52,10 +52,10 @@ def register( override: bool = False, **init_params: Any, ) -> Callable: - """Registers a accelerator mapped to a name and with required metadata. + """Registers an accelerator mapped to a name and with required metadata. Args: - name : the name that identifies a accelerator, e.g. "gpu" + name : the name that identifies an accelerator, e.g. "gpu" accelerator : accelerator class description : accelerator description override : overrides the registered accelerator, if True @@ -89,7 +89,7 @@ def get(self, name: str, default: Optional[Any] = None) -> Any: """Calls the registered accelerator with the required parameters and returns the accelerator object. Args: - name (str): the name that identifies a accelerator, e.g. "gpu" + name (str): the name that identifies an accelerator, e.g. "gpu" """ if name in self: