I would like to have this fonction and I don't know if it is possible :
x=tf.constant([1,2,3]) the equivalent of tf.greater(x[1],x[2]) with a type bool (not tensor of bool) to be used in a if then else condition
the code tf.cond(tf.greater(x[1],x[2]),lambda : (),lambda: ()) is a condition to make an other node so it doesn't work :(
Aucun commentaire:
Enregistrer un commentaire