Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 2fd4ecd

Browse files
William FedusMesh TensorFlow Team
authored andcommitted
Fix scalar summaries with TF2 import
PiperOrigin-RevId: 324257955
1 parent 7e3d57f commit 2fd4ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesh_tensorflow/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def host_call_fn(global_step, *args):
124124
assert len(args) == len(summaries)
125125
for i, tensor in enumerate(args):
126126
name = summaries[i][0]
127-
tf.summary.scalar(
127+
tf2.summary.scalar(
128128
name, tf.reduce_mean(tensor), step=global_step)
129129
return tf.summary.all_v2_summary_ops()
130130

0 commit comments

Comments
 (0)