Commit c7a04561 authored by Yong Tang's avatar Yong Tang Committed by Rasmus Munk Larsen
Browse files

Replace deprecated tf.contrib.metrics.streaming_accuracy with tf.metrics.accuracy (#18154)



* Replace deprecated tf.contrib.metrics.streaming_accuracy with tf.metrics.accuracy

As tf.contrib.metrics.streaming_accuracy (tf.contrib.metrics.streaming_mean_squared_error) has been deprecated and
has been replaced with tf.metrics.accuracy, this fix
replaces deprecated tf.contrib.metrics.streaming_accuracy with tf.metrics.accuracy
in tensorflow/contrib/training/python/training/evaluation.py.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Replace streaming_accuracy with tf.metrics.accuracy in tests

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Fix additional WARNING in evaluation_test.py

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>

* Fix pylint issue

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 2addad84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment