A kerastensor cannot be used as input to a tensorflow function.