Packages

package dense

Type Members

  1. abstract class ByteBufferDenseTensor extends DenseTensor

    Base class for dense int/float/double/long/boolean/string/byte[] tensors backed by a ByteBuffer using TensorFlow-compatible layout.

  2. class DenseBooleanTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a tensorflow tensor object.

    Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by IntBuffer.

  3. class DenseBytesTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a TensorFlow tensor object.

    Dense tensor which can be converted from/to a TensorFlow tensor object. The underlying data is backed up by ByteBuffer, using TensorFlow-compatible format: https://github.com/tensorflow/tensorflow/blob/98c0deb828c2f98f0d6d77a12d32f3b33ed92887/tensorflow/c/c_api.h#L206.

    All individual byte[] are added up in one ByteBuffer. ByteBuffer contains byte[] length (as a varint/ULEB128 https://en.wikipedia.org/wiki/LEB128#Unsigned_LEB128), followed by the contents of the byte[] at data[start_offset[i]]]

    start_offset: array[uint64] data: byte[...] [offset A][offset B][offset C][length A][data A][length B][data B][length C][data C].

  4. class DenseDoubleTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a tensorflow tensor object.

    Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by DoubleBuffer.

  5. class DenseFloatTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a tensorflow tensor object.

    Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by FloatBuffer.

  6. class DenseIntTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a tensorflow tensor object.

    Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by IntBuffer.

  7. class DenseLongTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a tensorflow tensor object.

    Dense tensor which can be converted from/to a tensorflow tensor object. The underlying data is backed up by LongBuffer.

  8. class DenseStringTensor extends ByteBufferDenseTensor

    Dense tensor which can be converted from/to a TensorFlow tensor object.

    Dense tensor which can be converted from/to a TensorFlow tensor object. The underlying data is backed up by ByteBuffer, using TensorFlow-compatible format: https://github.com/tensorflow/tensorflow/blob/98c0deb828c2f98f0d6d77a12d32f3b33ed92887/tensorflow/c/c_api.h#L206.

    start_offset: array[uint64] data: byte[...]

    The string length (as a varint/ULEB128 https://en.wikipedia.org/wiki/LEB128#Unsigned_LEB128), followed by the contents of the string is encoded at data[start_offset[i]]], using UTF-8 encoding.

    In other words, [offset A][offset B][offset C][length A][data A][length B][data B][length C][data C].

Ungrouped