TInt64

public interface TInt64

64-bit signed integer tensor type.

Public Methods

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

Inherited Methods

Public Methods

public static abstract TInt64 scalarOf (long value)

Allocates a new tensor for storing a single long value.

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

public static abstract TInt64 tensorOf (Shape shape, LongDataBuffer 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 longs to initialize the tensor with
Returns
  • the new tensor

public static abstract TInt64 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 TInt64 tensorOf (NdArray<Long> src)

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

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 TInt64 tensorOf (Shape shape, Consumer<TInt64> 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 TInt64 vectorOf (long... values)

Allocates a new tensor for storing a vector of longs.

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