owns the shared memory. Therefore, such memory will not be
     deallocated before the returned tensor goes out of scope.
Warning:
 This function's behavior is undefined when passed an object
 implementing the buffer protocol whose data is not on the CPU.
 Doing so is likely to cause a segmentation fault.

Warning:
 This function does not try to infer the "dtype" (hence, it is not
 optional). Passing a different "dtype" than its source may result
 in unexpected behavior.

Parameters:
      buffer (object) -- a Python object that exposes the buffer
      interface.
Keyword Arguments:
      * dtype ("torch.dtype") -- the desired data type of returned
        tensor.
  * **count** (*int**, **optional*) -- the number of desired
    elements to be read. If negative, all the elements (until the
    end of the buffer) will be read. Default: -1.

  * **offset** (*int**, **optional*) -- the number of bytes to
