Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed the DDPSpawnPlugin to DDPSpawnStrategy #11145

Merged
merged 10 commits into from
Dec 21, 2021
2 changes: 1 addition & 1 deletion pytorch_lightning/plugins/training_type/tpu_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def should_rank_save_checkpoint(self) -> bool:
def register_plugins(cls, plugin_registry: Dict) -> None:
plugin_registry.register("tpu_spawn_debug", cls, description="TPUSpawn Plugin with `debug` as True", debug=True)

@TPUSpawnPlugin.checkpoint_io.setter
@DDPSpawnStrategy.checkpoint_io.setter
carmocca marked this conversation as resolved.
Show resolved Hide resolved
def checkpoint_io(self, io: Optional[XLACheckpointIO]) -> None:
if io is not None and not isinstance(io, XLACheckpointIO):
raise MisconfigurationException(f"{self.__class__.__name__}.checkpoint_io` must be a `XLACheckpointIO`.")
Expand Down