original_docstring: In-place move/cast relevant elements.
  
          Passes all arguments to torch.Tensor.to, see its documentation.
          
docstring: In-place move/cast relevant elements.
  Passes all arguments to torch.Tensor.to, see its documentation.
docstring_tokens: In - place move / cast relevant elements . Passes all arguments to torch . Tensor . to see its documentation .
code: def to(self, *args, **kwargs):
          """In-place move/cast relevant elements.
  
          Passes all arguments to torch.Tensor.to, see its documentation.
          """
          for key in self.__device_prep_keys:
              value = getattr(self, key)
              moved = recursive_to(value, *args, **kwargs)
              setattr(self, key, moved)
          return self
code_tokens: def to ( self , * args , ** kwargs ) : for key in self . __device_prep_keys : value = getattr ( self , key ) moved = recursive_to ( value , * args , ** kwargs ) setattr ( self , key , moved ) return self
short_docstring: In-place move/cast relevant elements.
short_docstring_tokens: In - place move / cast relevant elements .
comment: """In-place move/cast relevant elements.
  
          Passes all arguments to torch.Tensor.to, see its documentation.
          """