aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples
diff options
context:
space:
mode:
authorGravatar Sourabh Bajaj <1517779+sb2nov@users.noreply.github.com>2017-12-01 12:27:32 -0800
committerGravatar GitHub <noreply@github.com>2017-12-01 12:27:32 -0800
commitf70c56e92ad137258753e02b3a0820c29fd4cdd4 (patch)
tree51220d6603193fe30f83c16de17b7047a2394f57 /tensorflow/examples
parent2c4e8fcf05d3e22b0758a6f63a423b9319f9c19d (diff)
parentcffd79f4b102c2082cbcc258abf7ed06df8c141c (diff)
Merge branch 'master' into branch_177545934
Diffstat (limited to 'tensorflow/examples')
-rw-r--r--tensorflow/examples/speech_commands/train.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/speech_commands/train.py b/tensorflow/examples/speech_commands/train.py
index f5bf04305a..bec7dacd21 100644
--- a/tensorflow/examples/speech_commands/train.py
+++ b/tensorflow/examples/speech_commands/train.py
@@ -161,7 +161,7 @@ def main(_):
evaluation_step = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
tf.summary.scalar('accuracy', evaluation_step)
- global_step = tf.contrib.framework.get_or_create_global_step()
+ global_step = tf.train.get_or_create_global_step()
increment_global_step = tf.assign(global_step, global_step + 1)
saver = tf.train.Saver(tf.global_variables())