TFloat64

public interface TFloat64

IEEE-754 double-precision 64-bit float tensor type.

Public Methods

abstract static TFloat64
scalarOf (double value)
Allocates a new tensor for storing a single double value.
abstract static TFloat64
tensorOf ( Shape shape, Consumer< TFloat64 > dataInit)
Allocates a new tensor of the given shape and initialize its data.
abstract static TFloat64
tensorOf ( Shape shape, DoubleDataBuffer data)
Allocates a new tensor of the given shape, initialized with the provided data.
abstract static TFloat64
tensorOf ( Shape shape)
Allocates a new tensor of the given shape.
abstract static TFloat64
tensorOf ( NdArray <Double> src)
Allocates a new tensor which is a copy of a given array of doubles.
abstract static TFloat64
vectorOf (double... values)
Allocates a new tensor for storing a vector of doubles.

Inherited Methods

Public Methods

public static abstract TFloat64 scalarOf (double value)

Allocates a new tensor for storing a single double value.

Parameters
value double to store in the new tensor
Returns
  • the new tensor

public static abstract TFloat64 tensorOf ( Shape shape, Consumer< TFloat64 > dataInit)

Allocates a new tensor of the given shape and initialize its data.

Parameters
shape shape of the tensor to allocate
dataInit tensor data initializer
Returns
  • the new tensor
Throws
TensorFlowException if the tensor cannot be allocated or initialized

public static abstract TFloat64 tensorOf ( Shape shape, DoubleDataBuffer data)

Allocates a new tensor of the given shape, initialized with the provided data.

Parameters
shape shape of the tensor to allocate
data buffer of doubles to initialize the tensor with
Returns
  • the new tensor

public static abstract TFloat64 tensorOf ( Shape shape)

Allocates a new tensor of the given shape.

Parameters
shape shape of the tensor to allocate
Returns
  • the new tensor

public static abstract TFloat64 tensorOf ( NdArray <Double> src)

Allocates a new tensor which is a copy of a given array of doubles.

The tensor will have the same shape as the source array and its data will be copied.

Parameters
src the source array giving the shape and data to the new tensor
Returns
  • the new tensor

public static abstract TFloat64 vectorOf (double... values)

Allocates a new tensor for storing a vector of doubles.

Parameters
values doubles to store in the new tensor
Returns
  • the new tensor