I thought a callable is just a function from the tf-library that I call. This:
tensor = tf.while_loop(tf.less(tf.rank(tensor), ndims), # cond
tf.append(tensor, axis=axis), # body
loop_vars = [tensor]) # loop_vars
errors to TypeError: cond must be callable.
What is a callable condition if not tf.less()
?