DenseInt4TensorArray

class DenseInt4TensorArray(val shape: Shape, data: ByteArray, offset: Int = 0) : ItemsAccessor<Int> (source)

Dense memory-backed tensor array for Int4 (4-bit signed integer) data.

Stores two Int4 values per byte:

  • High nibble: bits 4–7

  • Low nibble: bits 0–3

Values range from -8 to +7.

Constructors

Link copied to clipboard
constructor(shape: Shape, data: ByteArray, offset: Int = 0)
constructor(dimensions: List<Int>, data: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun get(vararg indices: Int): Int

Retrieves an element at the specified multidimensional indices.

Link copied to clipboard
open operator override fun set(vararg indices: Int, value: Int)

Setter