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
valuescontaining all of the unique elements along theaxisof the given tensorxin the same order that they occur along theaxisinx;xdoes not need to be sorted. It also returns a tensorindicesthe same size as the number of the elements inxalong theaxisdimension. It contains the index in the unique outputvalues.