Skip to content

Commit 6268053

Browse files
Dict union operator replaced by traditional solution and reference github PR #11009
PiperOrigin-RevId: 597914910
1 parent 6aed712 commit 6268053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/core/base_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def step_fn(inputs):
460460
passthrough_logs.keys(),
461461
)
462462

463-
return passthrough_logs | logs
463+
return {**passthrough_logs, **logs}
464464

465465
def eval_end(self, aggregated_logs=None):
466466
"""Processes evaluation results."""

0 commit comments

Comments
 (0)