Modifier and Type | Method and Description |
---|---|
static Tensor<Boolean> |
create(boolean data)
Creates a scalar tensor containing a single
boolean element. |
static Tensor<Boolean> |
create(boolean[] data)
Creates a rank-1 tensor of
boolean elements. |
static Tensor<Boolean> |
create(boolean[][] data)
Creates a rank-2 tensor of
boolean elements. |
static Tensor<Boolean> |
create(boolean[][][] data)
Creates a rank-3 tensor of
boolean elements. |
static Tensor<Boolean> |
create(boolean[][][][] data)
Creates a rank-4 tensor of
boolean elements. |
static Tensor<Boolean> |
create(boolean[][][][][] data)
Creates a rank-5 tensor of
boolean elements. |
static Tensor<Boolean> |
create(boolean[][][][][][] data)
Creates a rank-6 tensor of
boolean elements. |
static Tensor<String> |
create(byte[] data)
Creates a scalar tensor containing a single
byte element. |
static Tensor<String> |
create(byte[][] data)
Creates a rank-1 tensor of
byte elements. |
static Tensor<String> |
create(byte[][][] data)
Creates a rank-2 tensor of
byte elements. |
static Tensor<String> |
create(byte[][][][] data)
Creates a rank-3 tensor of
byte elements. |
static Tensor<String> |
create(byte[][][][][] data)
Creates a rank-4 tensor of
byte elements. |
static Tensor<String> |
create(byte[][][][][][] data)
Creates a rank-5 tensor of
byte elements. |
static Tensor<Double> |
create(double data)
Creates a scalar tensor containing a single
double element. |
static Tensor<Double> |
create(double[] data)
Creates a rank-1 tensor of
double elements. |
static Tensor<Double> |
create(double[][] data)
Creates a rank-2 tensor of
double elements. |
static Tensor<Double> |
create(double[][][] data)
Creates a rank-3 tensor of
double elements. |
static Tensor<Double> |
create(double[][][][] data)
Creates a rank-4 tensor of
double elements. |
static Tensor<Double> |
create(double[][][][][] data)
Creates a rank-5 tensor of
double elements. |
static Tensor<Double> |
create(double[][][][][][] data)
Creates a rank-6 tensor of
double elements. |
static Tensor<Float> |
create(float data)
Creates a scalar tensor containing a single
float element. |
static Tensor<Float> |
create(float[] data)
Creates a rank-1 tensor of
float elements. |
static Tensor<Float> |
create(float[][] data)
Creates a rank-2 tensor of
float elements. |
static Tensor<Float> |
create(float[][][] data)
Creates a rank-3 tensor of
float elements. |
static Tensor<Float> |
create(float[][][][] data)
Creates a rank-4 tensor of
float elements. |
static Tensor<Float> |
create(float[][][][][] data)
Creates a rank-5 tensor of
float elements. |
static Tensor<Float> |
create(float[][][][][][] data)
Creates a rank-6 tensor of
float elements. |
static Tensor<Integer> |
create(int data)
Creates a scalar tensor containing a single
int element. |
static Tensor<Integer> |
create(int[] data)
Creates a rank-1 tensor of
int elements. |
static Tensor<Integer> |
create(int[][] data)
Creates a rank-2 tensor of
int elements. |
static Tensor<Integer> |
create(int[][][] data)
Creates a rank-3 tensor of
int elements. |
static Tensor<Integer> |
create(int[][][][] data)
Creates a rank-4 tensor of
int elements. |
static Tensor<Integer> |
create(int[][][][][] data)
Creates a rank-5 tensor of
int elements. |
static Tensor<Integer> |
create(int[][][][][][] data)
Creates a rank-6 tensor of
int elements. |
static Tensor<Long> |
create(long data)
Creates a scalar tensor containing a single
long element. |
static Tensor<Long> |
create(long[] data)
Creates a rank-1 tensor of
long elements. |
static Tensor<Long> |
create(long[][] data)
Creates a rank-2 tensor of
long elements. |
static Tensor<Long> |
create(long[][][] data)
Creates a rank-3 tensor of
long elements. |
static Tensor<Long> |
create(long[][][][] data)
Creates a rank-4 tensor of
long elements. |
static Tensor<Long> |
create(long[][][][][] data)
Creates a rank-5 tensor of
long elements. |
static Tensor<Long> |
create(long[][][][][][] data)
Creates a rank-6 tensor of
long elements. |
static Tensor<String> |
create(String data)
Creates a scalar String tensor using the default, UTF-8 encoding.
|
static Tensor<String> |
create(String data,
Charset charset)
Creates a scalar String tensor using a specified encoding.
|
public static Tensor<String> create(String data)
data
- The string to put into the new scalar tensor.public static Tensor<String> create(String data, Charset charset)
charset
- The encoding from String to bytes.data
- The string to put into the new scalar tensor.public static Tensor<Float> create(float data)
float
element.data
- The value to put into the new scalar tensor.public static Tensor<Float> create(float[] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Float> create(float[][] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Float> create(float[][][] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Float> create(float[][][][] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Float> create(float[][][][][] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Float> create(float[][][][][][] data)
float
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double data)
double
element.data
- The value to put into the new scalar tensor.public static Tensor<Double> create(double[] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double[][] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double[][][] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double[][][][] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double[][][][][] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Double> create(double[][][][][][] data)
double
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int data)
int
element.data
- The value to put into the new scalar tensor.public static Tensor<Integer> create(int[] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int[][] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int[][][] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int[][][][] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int[][][][][] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Integer> create(int[][][][][][] data)
int
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<String> create(byte[] data)
byte
element.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<String> create(byte[][] data)
byte
elements.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<String> create(byte[][][] data)
byte
elements.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<String> create(byte[][][][] data)
byte
elements.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<String> create(byte[][][][][] data)
byte
elements.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<String> create(byte[][][][][][] data)
byte
elements.data
- An array containing the data to put into the new tensor. String elements are
sequences of bytes from the last array dimension.public static Tensor<Long> create(long data)
long
element.data
- The value to put into the new scalar tensor.public static Tensor<Long> create(long[] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Long> create(long[][] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Long> create(long[][][] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Long> create(long[][][][] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Long> create(long[][][][][] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Long> create(long[][][][][][] data)
long
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Boolean> create(boolean data)
boolean
element.data
- The value to put into the new scalar tensor.public static Tensor<Boolean> create(boolean[] data)
boolean
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Boolean> create(boolean[][] data)
boolean
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Boolean> create(boolean[][][] data)
boolean
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Boolean> create(boolean[][][][] data)
boolean
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.public static Tensor<Boolean> create(boolean[][][][][] data)
boolean
elements.data
- An array containing the values to put into the new tensor. The dimensions of the
new tensor will match those of the array.Copyright © 2022. All rights reserved.