Skip to content

Commit 9ecff0d

Browse files
committed
ProcessGroup
1 parent bcc636a commit 9ecff0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/fabric/utilities/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def load_state_dict(self, state_dict: dict[_DictKey, Any]) -> None: ...
6161

6262

6363
@runtime_checkable
64-
class CollectibleGroup(Protocol):
64+
class CollectibleGroup(ProcessGroup):
6565
def size(self) -> int: ...
6666

6767
def rank(self) -> int: ...
@@ -81,7 +81,7 @@ def step(self, closure: Optional[Callable[[], float]] = ...) -> Optional[float]:
8181

8282

8383
@runtime_checkable
84-
class Optimizable(Steppable, Protocol):
84+
class Optimizable(Steppable):
8585
"""To structurally type ``optimizer``"""
8686

8787
param_groups: list[dict[Any, Any]]

0 commit comments

Comments
 (0)