TensorFlow deadlock with while_loop

Post date: Jun 1, 2017 4:53:03 AM

i=tf.constant(0,tf.float32)

seq = tf.zeros([0],tf.float32)

def body(i):

seq = tf.concat([seq,new_t],axis=0)

return i+1

def cond(i):

return tf.less(i,10)

while_loop(cond,body,[i])

dead lock