Hi,
I have a very simple question.
If i have an tensor array which is like [1,1,1,1,2,2,3,3,3,2,2]
is there any function or method to count the repetition and generate another tensor which is: [0,1,2,3,0,1,0,1,2,0,1]