Return first index of value.
  Raises ValueError if the value is not present.

property is_cuda
  Returns true if *self.data* stored on a gpu

is_pinned()
  Returns true if *self.data* stored on in pinned memory

sorted_indices: Optional[Tensor]
  Alias for field number 2

to(args, *kwargs)
  Performs dtype and/or device conversion on *self.data*.

  It has similar signature as "torch.Tensor.to()", except optional
  arguments like *non_blocking* and *copy* should be passed as
  kwargs, not args, or they will not apply to the index tensors.

  Note:

    If the "self.data" Tensor already has the correct
    "torch.dtype" and "torch.device", then "self" is returned.
    Otherwise, returns a copy with the desired configuration.

unsorted_indices: Optional[Tensor]
  Alias for field number 3
