Livt packages

Livt.ML

Version 1.6.1

Fixed-size quantized inference, tensor storage, attention, and transformer building blocks for Livt.

Published files (132)

src/storage/ILookupTable.lvt

namespace Livt.ML.Storage

/**
 * Read-only nonnegative-indexed integer table supplied by the composition root.
 */
interface ILookupTable
{
	/**
	 * Reads the raw integer at index. Callers must supply an index in 0..Length()-1 and keep
	 * the provider stable during a calculation.
	 */
	fn Read(index: int) int

	/**
	 * Returns the number of addressable table entries; zero describes an unavailable or empty
	 * table.
	 */
	fn Length() int
}