torch.frombuffer
torch.frombuffer(buffer, *, dtype, count=- 1, offset=0, requires_grad=False) -> Tensor
Creates a 1-dimensional "Tensor" from an object that implements the
   Python buffer protocol.
Skips the first "offset" bytes in the buffer, and interprets the
   rest of the raw bytes as a 1-dimensional tensor of type "dtype"
   with "count" elements.
Note that either of the following must be true:


"count" is a positive non-zero number, and the total number of
   bytes in the buffer is less than "offset" plus "count" times the
   size (in bytes) of "dtype".


"count" is negative, and the length (number of bytes) of the
   buffer subtracted by the "offset" is a multiple of the size (in
   bytes) of "dtype".


The returned tensor and buffer share the same memory. Modifications
   to the tensor will be reflected in the buffer and vice versa. The
   returned tensor is not resizable.
Note:
 This function increments the reference count for the object that
