Hello and good evening,
I’ve searched a lot but with no significant result so far so I’m posting in this forum 
I have a Tensor in the form of :
(0 ,.,.) =
1.0858 -3.2292 -0.6477
(1 ,.,.) =
3.3863 -2.3600 -2.6776
(2 ,.,.) =
-2.3978 -2.0387  2.0728
and i want to transform it in a way that all the max values of each row will get the numer 1 and the others the number 0.
Any help would be very apprieciated