It returns a tensor values containing all of the unique elements along the
axis of the given tensor x in the same order that they occur along the
axis in x; x does not need to be sorted. It also returns a tensor
indices the same size as the number of the elements in x along the axis
dimension. It contains the index in the unique output values.
Finds unique elements along an axis of a tensor.
It returns a tensor
values
containing all of the unique elements along theaxis
of the given tensorx
in the same order that they occur along theaxis
inx
;x
does not need to be sorted. It also returns a tensorindices
the same size as the number of the elements inx
along theaxis
dimension. It contains the index in the unique outputvalues
.