Function createTensor

  • Creates a new Tensor (the datatype for storing tensors).

    Parameters

    • x: number | number[] | Vector | Tensor<Rank> | Tensor

      the numerical object used to create the tensor

    Returns Tensor

    the tensor