mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2025-01-09 22:39:22 +01:00
Fix: formating
This commit is contained in:
parent
78c3235eee
commit
bc9dc568c5
@ -42,8 +42,8 @@ def get_global_loss_detached(local_loss, reduction="mean"):
|
|||||||
"""
|
"""
|
||||||
if reduction != "mean":
|
if reduction != "mean":
|
||||||
logging.warn(
|
logging.warn(
|
||||||
f"The reduction used in this function should be the same as the one used by "
|
f"The reduction used in this function should be the same as the one used by"
|
||||||
f"the DDP model. By default DDP uses mean, So ensure that DDP is appropriately"
|
f"the DDP model. By default DDP uses mean, so ensure that DDP is appropriately"
|
||||||
f"modified for reduction {reduction}."
|
f"modified for reduction {reduction}."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user