Tensor

  • Returns a copy of self converted to BFloat16 physical scalar type.

  • Returns a copy of self converted to Scalar physical scalar type.

  • Creates a tensor with the same shape and scalars as the specified numpy.ndarray instance.

    Precondition

    The numpy Python package must be installed.
  • Creates a numpy.ndarray instance with the same shape and scalars as this tensor.

    Precondition

    The numpy Python package must be installed.
  • The device on which self is allocated.