Package-level declarations

Types

Link copied to clipboard
class ByteArrayMemoryChunk(data: ByteArray, offset: Int = 0, val size: Long = data.size.toLong()) : MemoryChunk
Link copied to clipboard

JavaScript/Browser implementation of RandomAccessSource using Blob API.

WASM JS implementation of RandomAccessSource using Blob API.

Link copied to clipboard

JVM implementation of RandomAccessSource using FileChannel.

Link copied to clipboard
interface MemoryChunk
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A source that supports random access reads at arbitrary positions.

Link copied to clipboard
data class TensorInfo(val name: String, val shape: Shape, val dtype: String, val offset: Long, val size: Long, val extra: Map<String, Any> = emptyMap())

Functions

Link copied to clipboard
inline suspend fun <T : DType, V> ParametersLoader.load(ctx: ExecutionContext, noinline onTensorLoaded: (String, Tensor<T, V>) -> Unit)