@TensorType(dataType=DT_DOUBLE, byteSize=8, mapperClass=TFloat64Mapper.class) public interface TFloat64 extends org.tensorflow.ndarray.DoubleNdArray, TFloating
Modifier and Type | Method and Description |
---|---|
static TFloat64 |
scalarOf(double value)
Allocates a new tensor for storing a single double value.
|
static TFloat64 |
tensorOf(org.tensorflow.ndarray.NdArray<Double> src)
Allocates a new tensor which is a copy of a given array of doubles.
|
static TFloat64 |
tensorOf(org.tensorflow.ndarray.Shape shape)
Allocates a new tensor of the given shape.
|
static TFloat64 |
tensorOf(org.tensorflow.ndarray.Shape shape,
Consumer<TFloat64> dataInit)
Allocates a new tensor of the given shape and initialize its data.
|
static TFloat64 |
tensorOf(org.tensorflow.ndarray.Shape shape,
org.tensorflow.ndarray.buffer.DoubleDataBuffer data)
Allocates a new tensor of the given shape, initialized with the provided data.
|
static TFloat64 |
vectorOf(double... values)
Allocates a new tensor for storing a vector of doubles.
|
static TFloat64 scalarOf(double value)
value
- double to store in the new tensorstatic TFloat64 vectorOf(double... values)
values
- doubles to store in the new tensorstatic TFloat64 tensorOf(org.tensorflow.ndarray.NdArray<Double> src)
The tensor will have the same shape as the source array and its data will be copied.
src
- the source array giving the shape and data to the new tensorstatic TFloat64 tensorOf(org.tensorflow.ndarray.Shape shape)
shape
- shape of the tensor to allocatestatic TFloat64 tensorOf(org.tensorflow.ndarray.Shape shape, org.tensorflow.ndarray.buffer.DoubleDataBuffer data)
shape
- shape of the tensor to allocatedata
- buffer of doubles to initialize the tensor withstatic TFloat64 tensorOf(org.tensorflow.ndarray.Shape shape, Consumer<TFloat64> dataInit)
shape
- shape of the tensor to allocatedataInit
- tensor data initializerTensorFlowException
- if the tensor cannot be allocated or initializedCopyright © 2015–2022. All rights reserved.