I have a tensor:
numbers = tf.constant([[4.00, 3.33], [2.34, 7.00]])
What I want to do is get a tensor that has the same dimensions as 'numbers', but has 1's at the indices where numbers is a whole number, and 0's at the indices where it is not, like so:
ans = [[1, 0],[0, 1]]
I'm guessing I would have to use tf.where() maybe? I'm really unsure how to do something like this using tensorflow. Thank you