Skip to content

Commit

Permalink
Avoid blank lines with federated training (#8342)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou committed Oct 14, 2022
1 parent b3208aa commit 80e10e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/collective.py
Expand Up @@ -114,7 +114,7 @@ def communicator_print(msg: Any) -> None:
msg = str(msg)
is_dist = _LIB.XGCommunicatorIsDistributed()
if is_dist != 0:
_check_call(_LIB.XGCommunicatorPrint(c_str(msg)))
_check_call(_LIB.XGCommunicatorPrint(c_str(msg.strip())))
else:
print(msg.strip(), flush=True)

Expand Down

0 comments on commit 80e10e0

Please sign in to comment.