Package | Description |
---|---|
org.tensorflow.op | |
org.tensorflow.op.core |
Modifier and Type | Method and Description |
---|---|
Constant<TBool> |
Ops.array(boolean... data)
Creates a constant of
boolean elements. |
Constant<TUint8> |
Ops.array(byte... data)
Creates a constant of
byte elements. |
Constant<TString> |
Ops.array(Charset charset,
String... data)
Creates a constant of
String elements, using the given charset. |
Constant<TFloat64> |
Ops.array(double... data)
Creates a constant of
double elements. |
Constant<TFloat32> |
Ops.array(float... data)
Creates a constant of
float elements. |
Constant<TInt32> |
Ops.array(int... data)
Creates a constant of
int elements. |
Constant<TInt64> |
Ops.array(long... data)
Creates a constant of
long elements. |
Constant<TString> |
Ops.array(String... data)
Creates a constant of
String elements, using the default UTF-8 charset. |
Constant<TBool> |
Ops.constant(boolean data)
Creates a constant containing a single
boolean element. |
Constant<TBool> |
Ops.constant(boolean[] data)
Creates a rank-1 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(boolean[][] data)
Creates a rank-2 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(boolean[][][] data)
Creates a rank-3 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(boolean[][][][] data)
Creates a rank-4 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(boolean[][][][][] data)
Creates a rank-5 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(boolean[][][][][][] data)
Creates a rank-6 constant of
boolean elements. |
Constant<TBool> |
Ops.constant(org.tensorflow.ndarray.BooleanNdArray data)
Creates a constant of
boolean elements that is a copy of a given n-dimensional array. |
Constant<TUint8> |
Ops.constant(byte data)
Creates a constant containing a single
byte element. |
Constant<TUint8> |
Ops.constant(byte[] data)
Creates a rank-1 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(byte[][] data)
Creates a rank-2 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(byte[][][] data)
Creates a rank-3 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(byte[][][][] data)
Creates a rank-4 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(byte[][][][][] data)
Creates a rank-5 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(byte[][][][][][] data)
Creates a rank-6 constant of
byte elements. |
Constant<TUint8> |
Ops.constant(org.tensorflow.ndarray.ByteNdArray data)
Creates a constant of
byte elements that is a copy of a given n-dimensional array. |
Constant<TString> |
Ops.constant(Charset charset,
org.tensorflow.ndarray.NdArray<String> data)
Creates a constant of
String elements that is a copy of a given n-dimensional array,
using the given encoding. |
Constant<TString> |
Ops.constant(Charset charset,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DataBuffer<String> data)
Create a
TString constant with data from the given buffer, using the given encoding. |
Constant<TString> |
Ops.constant(Charset charset,
String data)
Creates a
String constant using a specified encoding. |
Constant<TString> |
Ops.constant(Charset charset,
String[] data)
Creates a constant of
String elements, using the given charset. |
<T extends TNumber> |
Ops.constant(Class<T> type,
Number number)
Creates a scalar of
type , with the value of number . |
<T extends TType> |
Ops.constant(Class<T> type,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.ByteDataBuffer data)
Create a constant with data from the given buffer.
|
Constant<TFloat64> |
Ops.constant(double data)
Creates a constant containing a single
double element. |
Constant<TFloat64> |
Ops.constant(double[] data)
Creates a rank-1 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(double[][] data)
Creates a rank-2 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(double[][][] data)
Creates a rank-3 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(double[][][][] data)
Creates a rank-4 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(double[][][][][] data)
Creates a rank-5 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(double[][][][][][] data)
Creates a rank-6 constant of
double elements. |
Constant<TFloat64> |
Ops.constant(org.tensorflow.ndarray.DoubleNdArray data)
Creates a constant of
double elements that is a copy of a given n-dimensional array. |
Constant<TFloat32> |
Ops.constant(float data)
Creates a constant containing a single
float element. |
Constant<TFloat32> |
Ops.constant(float[] data)
Creates a rank-1 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(float[][] data)
Creates a rank-2 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(float[][][] data)
Creates a rank-3 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(float[][][][] data)
Creates a rank-4 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(float[][][][][] data)
Creates a rank-5 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(float[][][][][][] data)
Creates a rank-6 constant of
float elements. |
Constant<TFloat32> |
Ops.constant(org.tensorflow.ndarray.FloatNdArray data)
Creates a constant of
float elements that is a copy of a given n-dimensional array. |
Constant<TInt32> |
Ops.constant(int data)
Creates a constant containing a single
int element. |
Constant<TInt32> |
Ops.constant(int[] data)
Creates a rank-1 constant of
int elements. |
Constant<TInt32> |
Ops.constant(int[][] data)
Creates a rank-2 constant of
int elements. |
Constant<TInt32> |
Ops.constant(int[][][] data)
Creates a rank-3 constant of
int elements. |
Constant<TInt32> |
Ops.constant(int[][][][] data)
Creates a rank-4 constant of
int elements. |
Constant<TInt32> |
Ops.constant(int[][][][][] data)
Creates a rank-5 constant of
int elements. |
Constant<TInt32> |
Ops.constant(int[][][][][][] data)
Creates a rank-6 constant of
int elements. |
Constant<TInt32> |
Ops.constant(org.tensorflow.ndarray.IntNdArray data)
Creates a constant of
int elements that is a copy of a given n-dimensional array. |
Constant<TInt64> |
Ops.constant(long data)
Creates a constant containing a single
long element. |
Constant<TInt64> |
Ops.constant(long[] data)
Creates a rank-1 constant of
long elements. |
Constant<TInt64> |
Ops.constant(long[][] data)
Creates a rank-2 constant of
long elements. |
Constant<TInt64> |
Ops.constant(long[][][] data)
Creates a rank-3 constant of
long elements. |
Constant<TInt64> |
Ops.constant(long[][][][] data)
Creates a rank-4 constant of
long elements. |
Constant<TInt64> |
Ops.constant(long[][][][][] data)
Creates a rank-5 constant of
long elements. |
Constant<TInt64> |
Ops.constant(long[][][][][][] data)
Creates a rank-6 constant of
long elements. |
Constant<TInt64> |
Ops.constant(org.tensorflow.ndarray.LongNdArray data)
Creates a constant of
long elements that is a copy of a given n-dimensional array. |
Constant<TString> |
Ops.constant(org.tensorflow.ndarray.NdArray<String> data)
Creates a constant of
String elements that is a copy of a given n-dimensional array,
using the default UTF-8 encoding. |
Constant<TInt64> |
Ops.constant(org.tensorflow.ndarray.Shape shape)
Creates a rank-1 constant of
long elements representing the size of each dimensions of
the given shape. |
Constant<TBool> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.BooleanDataBuffer data)
Create a
TBool constant with data from the given buffer. |
Constant<TUint8> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.ByteDataBuffer data)
Create a
TUint8 constant with data from the given buffer. |
Constant<TString> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DataBuffer<String> data)
Create a
TString constant with data from the given buffer, using the default UTF-8
encoding. |
Constant<TFloat64> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DoubleDataBuffer data)
Create a
TFloat64 constant with data from the given buffer. |
Constant<TFloat32> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.FloatDataBuffer data)
Create a
TFloat32 constant with data from the given buffer. |
Constant<TInt32> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.IntDataBuffer data)
Create a
TInt32 constant with data from the given buffer. |
Constant<TInt64> |
Ops.constant(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.LongDataBuffer data)
Create a
TInt64 constant with data from the given buffer. |
Constant<TString> |
Ops.constant(String data)
Creates a
String constant using the default, UTF-8 encoding. |
<T extends TType> |
Ops.constantOf(T tensor)
Create a constant by making an immutable copy of
tensor . |
<T extends TNumber> |
Ops.constantOfSameType(Operand<T> toMatch,
Number number)
Creates a scalar of the same type as
toMatch , with the value of number . |
Modifier and Type | Method and Description |
---|---|
static Constant<TBool> |
Constant.arrayOf(Scope scope,
boolean... data)
Creates a constant of
boolean elements. |
static Constant<TUint8> |
Constant.arrayOf(Scope scope,
byte... data)
Creates a constant of
byte elements. |
static Constant<TString> |
Constant.arrayOf(Scope scope,
Charset charset,
String... data)
Creates a constant of
String elements, using the given charset. |
static Constant<TFloat64> |
Constant.arrayOf(Scope scope,
double... data)
Creates a constant of
double elements. |
static Constant<TFloat32> |
Constant.arrayOf(Scope scope,
float... data)
Creates a constant of
float elements. |
static Constant<TInt32> |
Constant.arrayOf(Scope scope,
int... data)
Creates a constant of
int elements. |
static Constant<TInt64> |
Constant.arrayOf(Scope scope,
long... data)
Creates a constant of
long elements. |
static Constant<TString> |
Constant.arrayOf(Scope scope,
String... data)
Creates a constant of
String elements, using the default UTF-8 charset. |
static <T extends TType> |
Constant.create(Scope scope,
T tensor)
Create a constant by making an immutable copy of
tensor . |
static Constant<TBool> |
Constant.scalarOf(Scope scope,
boolean data)
Creates a constant containing a single
boolean element. |
static Constant<TUint8> |
Constant.scalarOf(Scope scope,
byte data)
Creates a constant containing a single
byte element. |
static Constant<TString> |
Constant.scalarOf(Scope scope,
Charset charset,
String data)
Creates a
String constant using a specified encoding. |
static Constant<TFloat64> |
Constant.scalarOf(Scope scope,
double data)
Creates a constant containing a single
double element. |
static Constant<TFloat32> |
Constant.scalarOf(Scope scope,
float data)
Creates a constant containing a single
float element. |
static Constant<TInt32> |
Constant.scalarOf(Scope scope,
int data)
Creates a constant containing a single
int element. |
static Constant<TInt64> |
Constant.scalarOf(Scope scope,
long data)
Creates a constant containing a single
long element. |
static Constant<TString> |
Constant.scalarOf(Scope scope,
String data)
Creates a
String constant using the default, UTF-8 encoding. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
boolean[][] data)
Creates a rank-2 constant of
boolean elements. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
boolean[][][] data)
Creates a rank-3 constant of
boolean elements. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
boolean[][][][] data)
Creates a rank-4 constant of
boolean elements. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
boolean[][][][][] data)
Creates a rank-5 constant of
boolean elements. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
boolean[][][][][][] data)
Creates a rank-6 constant of
boolean elements. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.BooleanNdArray data)
Creates a constant of
boolean elements that is a copy of a given n-dimensional array. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
byte[][] data)
Creates a rank-2 constant of
byte elements. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
byte[][][] data)
Creates a rank-3 constant of
byte elements. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
byte[][][][] data)
Creates a rank-4 constant of
byte elements. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
byte[][][][][] data)
Creates a rank-5 constant of
byte elements. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
byte[][][][][][] data)
Creates a rank-6 constant of
byte elements. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.ByteNdArray data)
Creates a constant of
byte elements that is a copy of a given n-dimensional array. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
Charset charset,
org.tensorflow.ndarray.NdArray<String> data)
Creates a constant of
String elements that is a copy of a given n-dimensional array,
using the given encoding. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
Charset charset,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DataBuffer<String> data)
Create a
TString constant with data from the given buffer, using the given encoding. |
static <T extends TNumber> |
Constant.tensorOf(Scope scope,
Class<T> type,
Number number)
Creates a scalar of
type , with the value of number . |
static <T extends TType> |
Constant.tensorOf(Scope scope,
Class<T> type,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.ByteDataBuffer data)
Create a constant with data from the given buffer.
|
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
double[][] data)
Creates a rank-2 constant of
double elements. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
double[][][] data)
Creates a rank-3 constant of
double elements. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
double[][][][] data)
Creates a rank-4 constant of
double elements. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
double[][][][][] data)
Creates a rank-5 constant of
double elements. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
double[][][][][][] data)
Creates a rank-6 constant of
double elements. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.DoubleNdArray data)
Creates a constant of
double elements that is a copy of a given n-dimensional array. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
float[][] data)
Creates a rank-2 constant of
float elements. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
float[][][] data)
Creates a rank-3 constant of
float elements. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
float[][][][] data)
Creates a rank-4 constant of
float elements. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
float[][][][][] data)
Creates a rank-5 constant of
float elements. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
float[][][][][][] data)
Creates a rank-6 constant of
float elements. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.FloatNdArray data)
Creates a constant of
float elements that is a copy of a given n-dimensional array. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
int[][] data)
Creates a rank-2 constant of
int elements. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
int[][][] data)
Creates a rank-3 constant of
int elements. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
int[][][][] data)
Creates a rank-4 constant of
int elements. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
int[][][][][] data)
Creates a rank-5 constant of
int elements. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
int[][][][][][] data)
Creates a rank-6 constant of
int elements. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.IntNdArray data)
Creates a constant of
int elements that is a copy of a given n-dimensional array. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
long[][] data)
Creates a rank-2 constant of
long elements. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
long[][][] data)
Creates a rank-3 constant of
long elements. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
long[][][][] data)
Creates a rank-4 constant of
long elements. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
long[][][][][] data)
Creates a rank-5 constant of
long elements. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
long[][][][][][] data)
Creates a rank-6 constant of
long elements. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.LongNdArray data)
Creates a constant of
long elements that is a copy of a given n-dimensional array. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.NdArray<String> data)
Creates a constant of
String elements that is a copy of a given n-dimensional array,
using the default UTF-8 encoding. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape)
Creates a rank-1 constant of
long elements representing the size of each dimensions of
the given shape. |
static Constant<TBool> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.BooleanDataBuffer data)
Create a
TBool constant with data from the given buffer. |
static Constant<TUint8> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.ByteDataBuffer data)
Create a
TUint8 constant with data from the given buffer. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DataBuffer<String> data)
Create a
TString constant with data from the given buffer, using the default UTF-8
encoding. |
static Constant<TFloat64> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DoubleDataBuffer data)
Create a
TFloat64 constant with data from the given buffer. |
static Constant<TFloat32> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.FloatDataBuffer data)
Create a
TFloat32 constant with data from the given buffer. |
static Constant<TInt32> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.IntDataBuffer data)
Create a
TInt32 constant with data from the given buffer. |
static Constant<TInt64> |
Constant.tensorOf(Scope scope,
org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.LongDataBuffer data)
Create a
TInt64 constant with data from the given buffer. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
String[][] data)
Creates a rank-2 constant of
String elements, using default UTF-8 encoding. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
String[][][] data)
Creates a rank-3 constant of
String elements, using default UTF-8 encoding. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
String[][][][] data)
Creates a rank-4 constant of
String elements, using default UTF-8 encoding. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
String[][][][][] data)
Creates a rank-5 constant of
String elements, using default UTF-8 encoding. |
static Constant<TString> |
Constant.tensorOf(Scope scope,
String[][][][][][] data)
Creates a rank-6 constant of
String elements, using default UTF-8 encoding. |
static <T extends TNumber> |
Constant.tensorOfSameType(Scope scope,
Operand<T> toMatch,
Number number)
Creates a scalar of the same type as
toMatch , with the value of number . |
static Constant<TBool> |
Constant.vectorOf(Scope scope,
boolean[] data)
Creates a rank-1 constant of
boolean elements. |
static Constant<TUint8> |
Constant.vectorOf(Scope scope,
byte[] data)
Creates a rank-1 constant of
byte elements. |
static Constant<TString> |
Constant.vectorOf(Scope scope,
Charset charset,
String[] data)
Creates a constant of
String elements, using the given charset. |
static Constant<TFloat64> |
Constant.vectorOf(Scope scope,
double[] data)
Creates a rank-1 constant of
double elements. |
static Constant<TFloat32> |
Constant.vectorOf(Scope scope,
float[] data)
Creates a rank-1 constant of
float elements. |
static Constant<TInt32> |
Constant.vectorOf(Scope scope,
int[] data)
Creates a rank-1 constant of
int elements. |
static Constant<TInt64> |
Constant.vectorOf(Scope scope,
long[] data)
Creates a rank-1 constant of
long elements. |
static Constant<TString> |
Constant.vectorOf(Scope scope,
String[] data)
Creates a rank-1 constant of
String elements. |
Copyright © 2015–2022. All rights reserved.