Dense

data class Dense(val bytesPerElement: Int) : TensorEncoding(source)

Dense element-per-slot layout. One element occupies a fixed number of bytes.

Constructors

Link copied to clipboard
constructor(bytesPerElement: Int)

Properties

Link copied to clipboard
Link copied to clipboard
open override val name: String

Human-readable name for diagnostics and memory reports.

Functions

Link copied to clipboard
open override fun physicalBytes(elementCount: Long): Long

Physical bytes required to store elementCount logical elements in this encoding, or null if the encoding is opaque/variable.