public static final class TensorFlowUtil.TensorTuple extends Object implements Serializable
It's almost a record.
Modifier and Type | Field and Description |
---|---|
String |
className |
byte[] |
data |
long[] |
shape |
Constructor and Description |
---|
TensorTuple(String className,
long[] shape,
byte[] data)
Makes a TensorTuple.
|
Modifier and Type | Method and Description |
---|---|
static TensorFlowUtil.TensorTuple |
of(org.tensorflow.types.family.TType tensor)
Makes a TensorTuple out of this tensor.
|
org.tensorflow.Tensor |
rebuildTensor()
Recreates the Tensor from the serialized form.
|
public final String className
public final long[] shape
public final byte[] data
public TensorTuple(String className, long[] shape, byte[] data)
className
- The tensor class name.shape
- The dimensions of the tensor.data
- The data in the tensor.public org.tensorflow.Tensor rebuildTensor()
public static TensorFlowUtil.TensorTuple of(org.tensorflow.types.family.TType tensor)
tensor
- The tensor to serialize.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.