View aliases

This operation returns a tensor y containing all of the unique elements of x
sorted in the same order that they occur in x. This operation also returns a
tensor idx the same size as x that contains the index of each value of x
in the unique output y. In other words: