We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 862169b + 02f92a9 commit 49c7809Copy full SHA for 49c7809
src/lightning/pytorch/trainer/connectors/logger_connector/result.py
@@ -91,8 +91,7 @@ def _generate_sync_fn(self) -> None:
91
"""Used to compute the syncing function and cache it."""
92
fn = self.no_op if self.fn is None or not self.should or self.rank_zero_only else self.fn
93
# save the function as `_fn` as the meta are being re-created and the object references need to match.
94
- # ignore typing, bad support for `partial`: mypy/issues/1484
95
- self._fn: Callable = partial(fn, reduce_op=self.op, group=self.group) # type: ignore[unused-ignore]
+ self._fn: Callable = partial(fn, reduce_op=self.op, group=self.group)
96
97
@property
98
def __call__(self) -> Any:
0 commit comments