- All Implemented Interfaces:
- TensorData
- Direct Known Subclasses:
- ByteBufferDenseTensor
public abstract class DenseTensor
extends java.lang.Object
implements TensorData
A dense subkind of tensor data.
Guarantees that values in all columns except the last fill the n-dimensional rectangle in lexicographic order, e.g. for a shape [2, 3]:
(0, 0, value)
(0, 1, value)
(0, 2, value)
(1, 0, value)
(1, 1, value)
(1, 2, value)
Note that this implies that only integral types (INT and LONG) can be used as dimensions in dense tensors.
Can be backed by byte buffers, java.util collections, Avro, Spark, etc.