original_docstring: In-place, moves relevant elements to pinned memory.
docstring: In-place, moves relevant elements to pinned memory.
docstring_tokens: In - place moves relevant elements to pinned memory .
code: def pin_memory(self):
          """In-place, moves relevant elements to pinned memory."""
          for key in self.__device_prep_keys:
              value = getattr(self, key)
              pinned = recursive_pin_memory(value)
              setattr(self, key, pinned)
          return self
code_tokens: def pin_memory ( self ) : for key in self . __device_prep_keys : value = getattr ( self , key ) pinned = recursive_pin_memory ( value ) setattr ( self , key , pinned ) return self
short_docstring: In-place, moves relevant elements to pinned memory.
short_docstring_tokens: In - place moves relevant elements to pinned memory .
comment: """In-place, moves relevant elements to pinned memory."""