"data".
  * **device** ("torch.device", optional) -- the device of the
    constructed tensor. If None and data is a tensor then the
    device of data is used. If None and data is not a tensor then
    the result tensor is constructed on the CPU.

Example:
  >>> a = numpy.array([1, 2, 3])
  >>> t = torch.as_tensor(a)
  >>> t
  tensor([ 1,  2,  3])
  >>> t[0] = -1
  >>> a
  array([-1,  2,  3])

  >>> a = numpy.array([1, 2, 3])
  >>> t = torch.as_tensor(a, device=torch.device('cuda'))
  >>> t
  tensor([ 1,  2,  3])
  >>> t[0] = -1
  >>> a
  array([1,  2,  3])
