creates a tensor that always shares memory from objects that
     implement the buffer protocol. "torch.from_dlpack()" creates a
     tensor that always shares memory from DLPack capsules.
Parameters:
      obj (object) -- a tensor, NumPy array, DLPack Capsule,
      object that implements Python's buffer protocol, scalar, or
      sequence of scalars.
Keyword Arguments:
      * dtype ("torch.dtype", optional) -- the datatype of the
        returned tensor. Default: "None", which causes the datatype of
        the returned tensor to be inferred from "obj".
  * **copy** (*bool**, **optional*) -- controls whether the
    returned tensor shares memory with "obj". Default: "None",
    which causes the returned tensor to share memory with "obj"
    whenever possible. If "True" then the returned tensor does not
    share its memory. If "False" then the returned tensor shares
    its memory with "obj" and an error is thrown if it cannot.
