Here\'s my code.
import tensorflow as tf a=tf.Variable(tf.constant([0,1,2],dtype=tf.int32)) b=tf.Variable(tf.constant([1,1,1],dtype=tf.int32)) recall=tf.met
You also need to initialise the local variables hidden in the tf.metrics.recallmethod.
tf.metrics.recall
For example, this piece of code would work:
init_g = tf.global_variables_initializer() init_l = tf.local_variables_initializer() with tf.Session() as sess: sess.run(init_g) sess.run(init_l)