Skip to content

Commit 88b06d2

Browse files
Richardwan7laurenyu
authored andcommitted
change: fix horovod mnist script (#224)
1 parent 3a20d42 commit 88b06d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/resources/mnist/horovod_mnist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117

118118
if hvd.rank() == 0:
119119
# Exports the keras model as TensorFlow Serving Saved Model
120-
with tf.Session() as session:
120+
with K.get_session() as session:
121121

122122
init = tf.global_variables_initializer()
123123
session.run(init)

0 commit comments

Comments
 (0)