I am trying to extract the unique elements from a float tensor. I have tried :
out = torch.unique(my_tensor)
However this method only works for int/long tensor. My tensor is quantizied tensor in a non-uniform way, thus its guaranteed to have a small set of float values.