Opaque

data class Opaque(val name: String, val rawBytes: Long) : TensorEncoding(source)

Opaque / unknown encoding. Used as a fallback for formats the runtime cannot yet interpret but still wants to carry through without error.

Constructors

Link copied to clipboard
constructor(name: String, rawBytes: Long)

Properties

Link copied to clipboard
open override val name: String

Human-readable name for diagnostics and memory reports.

Link copied to clipboard

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.