I want to have an if statement in tensorflow; and if the condition is not fulfilled nothing should happen.
I tried to use both tf.case and tf.cond but both require a specification of a function it the statement evaluates False.
op = tf.cond(tf.equal(x, y), true_fn=f1(), false_fn=lambda: None)
gives me an error: ValueError: false_fn must have a return value.