


output
      tensor([1, 2, 3, 1, 2])
      >>> inverse_indices
      tensor([0, 0, 1, 1, 2, 3, 3, 4])



  >>> output, counts = torch.unique_consecutive(x, return_counts=True)
  >>> output
  tensor([1, 2, 3, 1, 2])
  >>> counts
  tensor([2, 2, 1, 2, 1])
