File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/lightning/pytorch/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ def log(
381
381
logger : Optional [bool ] = None ,
382
382
on_step : Optional [bool ] = None ,
383
383
on_epoch : Optional [bool ] = None ,
384
- reduce_fx : Union [str , Callable ] = "mean" ,
384
+ reduce_fx : Union [str , Callable [[ Any ], Any ] ] = "mean" ,
385
385
enable_graph : bool = False ,
386
386
sync_dist : bool = False ,
387
387
sync_dist_group : Optional [Any ] = None ,
@@ -546,7 +546,7 @@ def log_dict(
546
546
logger : Optional [bool ] = None ,
547
547
on_step : Optional [bool ] = None ,
548
548
on_epoch : Optional [bool ] = None ,
549
- reduce_fx : Union [str , Callable ] = "mean" ,
549
+ reduce_fx : Union [str , Callable [[ Any ], Any ] ] = "mean" ,
550
550
enable_graph : bool = False ,
551
551
sync_dist : bool = False ,
552
552
sync_dist_group : Optional [Any ] = None ,
You can’t perform that action at this time.
0 commit comments