Package | Description |
---|---|
org.tensorflow |
Defines classes to build, save, load and execute TensorFlow models.
|
org.tensorflow.op.summary |
Modifier and Type | Field and Description |
---|---|
List<Tensor<?>> |
Session.Run.outputs
Tensors from requested fetches.
|
List<Tensor<?>> |
Session.Run.outputs
Tensors from requested fetches.
|
Modifier and Type | Method and Description |
---|---|
static Tensor<Boolean> |
Tensors.create(boolean data)
Creates a scalar tensor containing a single
boolean element. |
static Tensor<Boolean> |
Tensors.create(boolean data)
Creates a scalar tensor containing a single
boolean element. |
static Tensor<Boolean> |
Tensors.create(boolean[] data)
Creates a rank-1 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[] data)
Creates a rank-1 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][] data)
Creates a rank-2 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][] data)
Creates a rank-2 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][] data)
Creates a rank-3 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][] data)
Creates a rank-3 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][] data)
Creates a rank-4 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][] data)
Creates a rank-4 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][][] data)
Creates a rank-5 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][][] data)
Creates a rank-5 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][][][] data)
Creates a rank-6 tensor of
boolean elements. |
static Tensor<Boolean> |
Tensors.create(boolean[][][][][][] data)
Creates a rank-6 tensor of
boolean elements. |
static Tensor<String> |
Tensors.create(byte[] data)
Creates a scalar tensor containing a single
byte element. |
static Tensor<String> |
Tensors.create(byte[] data)
Creates a scalar tensor containing a single
byte element. |
static Tensor<String> |
Tensors.create(byte[][] data)
Creates a rank-1 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][] data)
Creates a rank-1 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][] data)
Creates a rank-2 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][] data)
Creates a rank-2 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][] data)
Creates a rank-3 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][] data)
Creates a rank-3 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][][] data)
Creates a rank-4 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][][] data)
Creates a rank-4 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][][][] data)
Creates a rank-5 tensor of
byte elements. |
static Tensor<String> |
Tensors.create(byte[][][][][][] data)
Creates a rank-5 tensor of
byte elements. |
static <T> Tensor<T> |
Tensor.create(Class<T> type,
long[] shape,
ByteBuffer data)
Create a Tensor of any type with data from the given buffer.
|
static <T> Tensor<T> |
Tensor.create(Class<T> type,
long[] shape,
ByteBuffer data)
Create a Tensor of any type with data from the given buffer.
|
static Tensor<Double> |
Tensors.create(double data)
Creates a scalar tensor containing a single
double element. |
static Tensor<Double> |
Tensors.create(double data)
Creates a scalar tensor containing a single
double element. |
static Tensor<Double> |
Tensors.create(double[] data)
Creates a rank-1 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[] data)
Creates a rank-1 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][] data)
Creates a rank-2 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][] data)
Creates a rank-2 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][] data)
Creates a rank-3 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][] data)
Creates a rank-3 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][] data)
Creates a rank-4 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][] data)
Creates a rank-4 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][][] data)
Creates a rank-5 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][][] data)
Creates a rank-5 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][][][] data)
Creates a rank-6 tensor of
double elements. |
static Tensor<Double> |
Tensors.create(double[][][][][][] data)
Creates a rank-6 tensor of
double elements. |
static Tensor<Float> |
Tensors.create(float data)
Creates a scalar tensor containing a single
float element. |
static Tensor<Float> |
Tensors.create(float data)
Creates a scalar tensor containing a single
float element. |
static Tensor<Float> |
Tensors.create(float[] data)
Creates a rank-1 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[] data)
Creates a rank-1 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][] data)
Creates a rank-2 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][] data)
Creates a rank-2 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][] data)
Creates a rank-3 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][] data)
Creates a rank-3 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][] data)
Creates a rank-4 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][] data)
Creates a rank-4 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][][] data)
Creates a rank-5 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][][] data)
Creates a rank-5 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][][][] data)
Creates a rank-6 tensor of
float elements. |
static Tensor<Float> |
Tensors.create(float[][][][][][] data)
Creates a rank-6 tensor of
float elements. |
static Tensor<Integer> |
Tensors.create(int data)
Creates a scalar tensor containing a single
int element. |
static Tensor<Integer> |
Tensors.create(int data)
Creates a scalar tensor containing a single
int element. |
static Tensor<Integer> |
Tensors.create(int[] data)
Creates a rank-1 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[] data)
Creates a rank-1 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][] data)
Creates a rank-2 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][] data)
Creates a rank-2 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][] data)
Creates a rank-3 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][] data)
Creates a rank-3 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][] data)
Creates a rank-4 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][] data)
Creates a rank-4 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][][] data)
Creates a rank-5 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][][] data)
Creates a rank-5 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][][][] data)
Creates a rank-6 tensor of
int elements. |
static Tensor<Integer> |
Tensors.create(int[][][][][][] data)
Creates a rank-6 tensor of
int elements. |
static Tensor<Long> |
Tensors.create(long data)
Creates a scalar tensor containing a single
long element. |
static Tensor<Long> |
Tensors.create(long data)
Creates a scalar tensor containing a single
long element. |
static Tensor<Long> |
Tensors.create(long[] data)
Creates a rank-1 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[] data)
Creates a rank-1 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][] data)
Creates a rank-2 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][] data)
Creates a rank-2 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][] data)
Creates a rank-3 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][] data)
Creates a rank-3 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][] data)
Creates a rank-4 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][] data)
Creates a rank-4 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][][] data)
Creates a rank-5 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][][] data)
Creates a rank-5 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][][][] data)
Creates a rank-6 tensor of
long elements. |
static Tensor<Long> |
Tensors.create(long[][][][][][] data)
Creates a rank-6 tensor of
long elements. |
static Tensor<Double> |
Tensor.create(long[] shape,
DoubleBuffer data)
Create a
Double Tensor with data from the given buffer. |
static Tensor<Double> |
Tensor.create(long[] shape,
DoubleBuffer data)
Create a
Double Tensor with data from the given buffer. |
static Tensor<Float> |
Tensor.create(long[] shape,
FloatBuffer data)
Create a
Float Tensor with data from the given buffer. |
static Tensor<Float> |
Tensor.create(long[] shape,
FloatBuffer data)
Create a
Float Tensor with data from the given buffer. |
static Tensor<Integer> |
Tensor.create(long[] shape,
IntBuffer data)
Create a
Integer Tensor with data from the given buffer. |
static Tensor<Integer> |
Tensor.create(long[] shape,
IntBuffer data)
Create a
Integer Tensor with data from the given buffer. |
static Tensor<Long> |
Tensor.create(long[] shape,
LongBuffer data)
Create an
Long Tensor with data from the given buffer. |
static Tensor<Long> |
Tensor.create(long[] shape,
LongBuffer data)
Create an
Long Tensor with data from the given buffer. |
static Tensor<?> |
Tensor.create(Object obj)
Creates a tensor from an object whose class is inspected to figure out what the underlying data
type should be.
|
static Tensor<?> |
Tensor.create(Object obj)
Creates a tensor from an object whose class is inspected to figure out what the underlying data
type should be.
|
static <T> Tensor<T> |
Tensor.create(Object obj,
Class<T> type)
Creates a Tensor from a Java object.
|
static <T> Tensor<T> |
Tensor.create(Object obj,
Class<T> type)
Creates a Tensor from a Java object.
|
static Tensor<String> |
Tensors.create(String data)
Creates a scalar String tensor using the default, UTF-8 encoding.
|
static Tensor<String> |
Tensors.create(String data)
Creates a scalar String tensor using the default, UTF-8 encoding.
|
static Tensor<String> |
Tensors.create(String data,
Charset charset)
Creates a scalar String tensor using a specified encoding.
|
static Tensor<String> |
Tensors.create(String data,
Charset charset)
Creates a scalar String tensor using a specified encoding.
|
<U> Tensor<U> |
Tensor.expect(Class<U> type)
Returns this Tensor object with the type
Tensor<U> . |
<U> Tensor<U> |
Tensor.expect(Class<U> type)
Returns this Tensor object with the type
Tensor<U> . |
Tensor<T> |
Output.tensor()
Returns the tensor at this output.
|
Tensor<T> |
Output.tensor()
Returns the tensor at this output.
|
Modifier and Type | Method and Description |
---|---|
List<Tensor<?>> |
Session.Runner.run()
Execute the graph fragments necessary to compute all requested fetches.
|
List<Tensor<?>> |
Session.Runner.run()
Execute the graph fragments necessary to compute all requested fetches.
|
Modifier and Type | Method and Description |
---|---|
Session.Runner |
Session.Runner.feed(Operand<?> operand,
Tensor<?> t)
Use
t instead of the Tensor referred to by executing the operation referred to by
operand . |
Session.Runner |
Session.Runner.feed(Operand<?> operand,
Tensor<?> t)
Use
t instead of the Tensor referred to by executing the operation referred to by
operand . |
Session.Runner |
Session.Runner.feed(String operation,
int index,
Tensor<?> t)
Avoid evaluating the
index -th output of operation by substituting t
for the value it produces. |
Session.Runner |
Session.Runner.feed(String operation,
int index,
Tensor<?> t)
Avoid evaluating the
index -th output of operation by substituting t
for the value it produces. |
Session.Runner |
Session.Runner.feed(String operation,
Tensor<?> t)
Avoid evaluating
operation and substitute t for the value it produces. |
Session.Runner |
Session.Runner.feed(String operation,
Tensor<?> t)
Avoid evaluating
operation and substitute t for the value it produces. |
GraphOperationBuilder |
GraphOperationBuilder.setAttr(String name,
Tensor<?> value) |
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor<?> value)
Set the tensor value of an attribute of the operation being built.
|
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor<?> value)
Set the tensor value of an attribute of the operation being built.
|
GraphOperationBuilder |
GraphOperationBuilder.setAttr(String name,
Tensor<?> value) |
GraphOperationBuilder |
GraphOperationBuilder.setAttr(String name,
Tensor<?>[] value) |
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor<?>[] value)
Set the tensor values of an attribute of the operation being built.
|
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor<?>[] value)
Set the tensor values of an attribute of the operation being built.
|
GraphOperationBuilder |
GraphOperationBuilder.setAttr(String name,
Tensor<?>[] value) |
Modifier and Type | Method and Description |
---|---|
static ImageSummary.Options |
ImageSummary.badColor(Tensor<?> badColor) |
ImageSummary.Options |
ImageSummary.Options.badColor(Tensor<?> badColor) |
static ImageSummary.Options |
ImageSummary.badColor(Tensor<?> badColor) |
ImageSummary.Options |
ImageSummary.Options.badColor(Tensor<?> badColor) |
Copyright © 2022. All rights reserved.