diff options
author | DONGGEON LIM <ooqwe486@gmail.com> | 2017-12-02 04:20:20 +0900 |
---|---|---|
committer | Sourabh Bajaj <1517779+sb2nov@users.noreply.github.com> | 2017-12-01 11:20:20 -0800 |
commit | 1a4d634a04915518788e14a6c96bcff4803e0882 (patch) | |
tree | bf02fca20311d2851766c081af618e41d40aefd7 /tensorflow/examples | |
parent | cae852a32ee8ef86d4a58512c1177359c5bfd465 (diff) |
Fix deprecated function (#15020)
Diffstat (limited to 'tensorflow/examples')
-rw-r--r-- | tensorflow/examples/speech_commands/train.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/speech_commands/train.py b/tensorflow/examples/speech_commands/train.py index f46d5e59b4..a4141b4917 100644 --- a/tensorflow/examples/speech_commands/train.py +++ b/tensorflow/examples/speech_commands/train.py @@ -160,7 +160,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()) |