Class DenseIntTensor

All Implemented Interfaces:
TensorData

public class DenseIntTensor extends ByteBufferDenseTensor
Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by IntBuffer.
  • Constructor Details

    • DenseIntTensor

      public DenseIntTensor(ByteBuffer byteBuffer, long[] shape)
    • DenseIntTensor

      public DenseIntTensor(ByteBuffer byteBuffer, long[] shape, Representable[] types, int cardinality)
  • Method Details

    • iterator

      public TensorIterator iterator()
      Returns:
      an iterator over entries in the mapping from dimensions to the value.
    • asList

      public List<?> asList()
      Specified by:
      asList in class DenseTensor
      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.