| Package | Description |
|---|---|
| org.tensorflow.op.core |
| Modifier and Type | Method and Description |
|---|---|
static Constant<Boolean> |
Constant.create(Scope scope,
boolean data)
Creates a constant containing a single
boolean element. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[] data)
Creates a rank-1 constant of
boolean elements. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[][] data)
Creates a rank-2 constant of
boolean elements. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[][][] data)
Creates a rank-3 constant of
boolean elements. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[][][][] data)
Creates a rank-4 constant of
boolean elements. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[][][][][] data)
Creates a rank-5 constant of
boolean elements. |
static Constant<Boolean> |
Constant.create(Scope scope,
boolean[][][][][][] data)
Creates a rank-6 constant of
boolean elements. |
static Constant<String> |
Constant.create(Scope scope,
byte[] data)
Creates a constant containing a single
String element, represented as an array of bytes. |
static Constant<String> |
Constant.create(Scope scope,
byte[][] data)
Creates a rank-1 constant of
String elements, each represented as an array of bytes. |
static Constant<String> |
Constant.create(Scope scope,
byte[][][] data)
Creates a rank-2 constant of
String elements, each represented as an array of bytes. |
static Constant<String> |
Constant.create(Scope scope,
byte[][][][] data)
Creates a rank-3 constant of
String elements, each represented as an array of bytes. |
static Constant<String> |
Constant.create(Scope scope,
byte[][][][][] data)
Creates a rank-4 constant of
String elements, each represented as an array of bytes. |
static Constant<String> |
Constant.create(Scope scope,
byte[][][][][][] data)
Creates a rank-5 constant of
String elements, each represented as an array of bytes. |
static <T> Constant<T> |
Constant.create(Scope scope,
Class<T> type,
long[] shape,
ByteBuffer data)
Create a constant with data from the given buffer.
|
static Constant<Double> |
Constant.create(Scope scope,
double data)
Creates a constant containing a single
double element. |
static Constant<Double> |
Constant.create(Scope scope,
double[] data)
Creates a rank-1 constant of
double elements. |
static Constant<Double> |
Constant.create(Scope scope,
double[][] data)
Creates a rank-2 constant of
double elements. |
static Constant<Double> |
Constant.create(Scope scope,
double[][][] data)
Creates a rank-3 constant of
double elements. |
static Constant<Double> |
Constant.create(Scope scope,
double[][][][] data)
Creates a rank-4 constant of
double elements. |
static Constant<Double> |
Constant.create(Scope scope,
double[][][][][] data)
Creates a rank-5 constant of
double elements. |
static Constant<Double> |
Constant.create(Scope scope,
double[][][][][][] data)
Creates a rank-6 constant of
double elements. |
static Constant<Float> |
Constant.create(Scope scope,
float data)
Creates a constant containing a single
float element. |
static Constant<Float> |
Constant.create(Scope scope,
float[] data)
Creates a rank-1 constant of
float elements. |
static Constant<Float> |
Constant.create(Scope scope,
float[][] data)
Creates a rank-2 constant of
float elements. |
static Constant<Float> |
Constant.create(Scope scope,
float[][][] data)
Creates a rank-3 constant of
float elements. |
static Constant<Float> |
Constant.create(Scope scope,
float[][][][] data)
Creates a rank-4 constant of
float elements. |
static Constant<Float> |
Constant.create(Scope scope,
float[][][][][] data)
Creates a rank-5 constant of
float elements. |
static Constant<Float> |
Constant.create(Scope scope,
float[][][][][][] data)
Creates a rank-6 constant of
float elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int data)
Creates a constant containing a single
int element. |
static Constant<Integer> |
Constant.create(Scope scope,
int[] data)
Creates a rank-1 constant of
int elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int[][] data)
Creates a rank-2 constant of
int elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int[][][] data)
Creates a rank-3 constant of
int elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int[][][][] data)
Creates a rank-4 constant of
int elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int[][][][][] data)
Creates a rank-5 constant of
int elements. |
static Constant<Integer> |
Constant.create(Scope scope,
int[][][][][][] data)
Creates a rank-6 constant of
int elements. |
static Constant<Long> |
Constant.create(Scope scope,
long data)
Creates a constant containing a single
long element. |
static Constant<Long> |
Constant.create(Scope scope,
long[] data)
Creates a rank-1 constant of
long elements. |
static Constant<Long> |
Constant.create(Scope scope,
long[][] data)
Creates a rank-2 constant of
long elements. |
static Constant<Long> |
Constant.create(Scope scope,
long[][][] data)
Creates a rank-3 constant of
long elements. |
static Constant<Long> |
Constant.create(Scope scope,
long[][][][] data)
Creates a rank-4 constant of
long elements. |
static Constant<Long> |
Constant.create(Scope scope,
long[][][][][] data)
Creates a rank-5 constant of
long elements. |
static Constant<Long> |
Constant.create(Scope scope,
long[][][][][][] data)
Creates a rank-6 constant of
long elements. |
static Constant<Double> |
Constant.create(Scope scope,
long[] shape,
DoubleBuffer data)
Create a
DataType.DOUBLE constant with data from the given buffer. |
static Constant<Float> |
Constant.create(Scope scope,
long[] shape,
FloatBuffer data)
Create a
DataType.FLOAT constant with data from the given buffer. |
static Constant<Integer> |
Constant.create(Scope scope,
long[] shape,
IntBuffer data)
Create a
DataType.INT32 constant with data from the given buffer. |
static Constant<Long> |
Constant.create(Scope scope,
long[] shape,
LongBuffer data)
Create a
DataType.INT64 constant with data from the given buffer. |
static <T> Constant<T> |
Constant.create(Scope scope,
Object object,
Class<T> type)
Create a constant from a Java object.
|
static Constant<String> |
Constant.create(Scope scope,
String data)
Creates a
String constant using the default, UTF-8 encoding. |
static Constant<String> |
Constant.create(Scope scope,
String data,
Charset charset)
Creates a
String constant using a specified encoding. |
Copyright © 2019. All rights reserved.