Skip to content

Commit 5664f02

Browse files
committed
Merge branch 'freeze-model-summary' of github.com:YChienHung/pytorch-lightning into freeze-model-summary
2 parents e462627 + 6263a9c commit 5664f02

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/checkgroup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ subprojects:
7171
# paths:
7272
# # tpu CI availability is very limited, so we only require tpu tests
7373
# # to pass when their configurations are modified
74-
# - ".github/workflows/tpu-tests.yml"
74+
# - ".github/workflows/tpu-tests.yml.disabled"
7575
# - "tests/tests_pytorch/run_tpu_tests.sh"
7676
# checks:
7777
# - "test-on-tpus (pytorch, pjrt, v4-8)"
@@ -181,7 +181,7 @@ subprojects:
181181
# paths:
182182
# # tpu CI availability is very limited, so we only require tpu tests
183183
# # to pass when their configurations are modified
184-
# - ".github/workflows/tpu-tests.yml"
184+
# - ".github/workflows/tpu-tests.yml.disabled"
185185
# - "tests/tests_fabric/run_tpu_tests.sh"
186186
# checks:
187187
# - "test-on-tpus (pytorch, pjrt, v4-8)"

src/lightning/pytorch/core/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def log(
381381
logger: Optional[bool] = None,
382382
on_step: Optional[bool] = None,
383383
on_epoch: Optional[bool] = None,
384-
reduce_fx: Union[str, Callable] = "mean",
384+
reduce_fx: Union[str, Callable[[Any], Any]] = "mean",
385385
enable_graph: bool = False,
386386
sync_dist: bool = False,
387387
sync_dist_group: Optional[Any] = None,
@@ -546,7 +546,7 @@ def log_dict(
546546
logger: Optional[bool] = None,
547547
on_step: Optional[bool] = None,
548548
on_epoch: Optional[bool] = None,
549-
reduce_fx: Union[str, Callable] = "mean",
549+
reduce_fx: Union[str, Callable[[Any], Any]] = "mean",
550550
enable_graph: bool = False,
551551
sync_dist: bool = False,
552552
sync_dist_group: Optional[Any] = None,

0 commit comments

Comments
 (0)