Modifier and Type | Field and Description |
---|---|
List<Tensor> |
Session.Run.outputs
Tensors from requested fetches.
|
Modifier and Type | Method and Description |
---|---|
static Tensor |
Tensor.create(DataType dataType,
long[] shape,
ByteBuffer data)
Create a Tensor with data from the given buffer.
|
static Tensor |
Tensor.create(long[] shape,
DoubleBuffer data)
Create a
DataType.DOUBLE Tensor with data from the given buffer. |
static Tensor |
Tensor.create(long[] shape,
FloatBuffer data)
Create a
DataType.FLOAT Tensor with data from the given buffer. |
static Tensor |
Tensor.create(long[] shape,
IntBuffer data)
Create an
DataType.INT32 Tensor with data from the given buffer. |
static Tensor |
Tensor.create(long[] shape,
LongBuffer data)
Create an
DataType.INT64 Tensor with data from the given buffer. |
static Tensor |
Tensor.create(Object obj)
Create a Tensor from a Java object.
|
Modifier and Type | Method and Description |
---|---|
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(Output o,
Tensor t)
Use
t instead of the Tensor referred to by executing the operation referred to by
output . |
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. |
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor value) |
OperationBuilder |
OperationBuilder.setAttr(String name,
Tensor[] value) |
Copyright © 2015–2017. All rights reserved.