python 3.x - Tensorflow reset or clear collection -


in tensorflow, find api tf.add_to_collcetion add value collection code bellow.

def accuracy_rate(logits, labels):     correct = tf.nn.in_top_k(logits, labels, 1)     # return accuracy of true entries.     accuracy = tf.reduce_mean(tf.cast(correct, tf.float32))     return accuracy  tf.session() sess:     logits, labels = ...     accuracy = accuracy_rate(logits, labels)     tf.add_to_collection('total_accuracy', sess.run(accuracy)) 

what can't find in api that, how can clear values i've stored in 1 collection?

is tf.reset_default_graph looking for?

https://www.tensorflow.org/api_docs/python/tf/reset_default_graph


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -