Class DenseLongTensor
java.lang.Object
com.linkedin.feathr.common.tensor.DenseTensor
com.linkedin.feathr.common.tensor.dense.ByteBufferDenseTensor
com.linkedin.feathr.common.tensor.dense.DenseLongTensor
- All Implemented Interfaces:
TensorData
Dense tensor which can be converted from/to a tensorflow tensor object.
The underlying data is backed up by LongBuffer.
-
Field Summary
Fields inherited from class com.linkedin.feathr.common.tensor.dense.ByteBufferDenseTensor
_byteBuffer, _cardinality, _limit, _shape, _start, _types -
Constructor Summary
ConstructorsConstructorDescriptionDenseLongTensor(ByteBuffer byteBuffer, long[] shape) DenseLongTensor(ByteBuffer byteBuffer, long[] shape, Representable[] types, int cardinality) -
Method Summary
Methods inherited from class com.linkedin.feathr.common.tensor.dense.ByteBufferDenseTensor
cardinality, estimatedCardinality, getByteBuffer, getByteBuffer, getShape, getTypesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.feathr.common.tensor.TensorData
getArity, isEmpty
-
Constructor Details
-
DenseLongTensor
-
DenseLongTensor
-
-
Method Details
-
iterator
- Returns:
- an iterator over entries in the mapping from dimensions to the value.
-
asList
- Specified by:
asListin classDenseTensor- Returns:
- the list of values in their unraveled order. This in combination with the shape is enough to restore the entire tensor, as the dimensions can be calculated from the shape.
-