How to get two or more maximum indexes values set to 1 from tf.softmax's output
tf.nn.softmax forces everything to add up to 1.0 to make a valid probability distribution. If you want multiple values in the vector to be ones then you should use tf.nn.sigmoid instead. 
If you want to retrieve the maximum numbers in the vector use tf.nn.top_k.
I want to get the maximum (2 or more) indexes set to 1 from the output of tf.nn.softmax(). 
given tf.nn.softmax's  outputs as [0.1, 0.4, 0.2, 0.1, 0.8] I want to get something like [0,1,0,0,1] since those indexes have the maximum numbers (in this case I chose just the maximum 2). Thank you in advance!