Package-level declarations

Types

Link copied to clipboard
class ConvKernel<T : DType, V>(builder: TensorBuilder<T, V>)

Creates convolution kernel tensors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ImageInitializers<T : DType, V>(shapeBuilder: ShapeBuilder<T, V>)

Common image processing initializations

Link copied to clipboard
class ImageTensor<T : DType, V>(builder: TensorBuilder<T, V>)

Creates image tensors in BCHW (Batch, Channel, Height, Width) format

Link copied to clipboard
sealed class InitializationType<out V>

Types of tensor initialization

Link copied to clipboard
class MLPBias<T : DType, V>(builder: TensorBuilder<T, V>)

Creates bias tensors for MLP layers

Link copied to clipboard
class MLPWeights<T : DType, V>(builder: TensorBuilder<T, V>)

Creates weight tensors for MLP layers with common initialization strategies

Link copied to clipboard
class ShapeBuilder<T : DType, V>(dtype: KClass<T>, shape: Shape)

Builder for tensors with a defined shape, allowing initialization

Link copied to clipboard
class TensorBuilder<T : DType, V>(dtype: KClass<T>)

Builder class for constructing tensors with various initialization strategies

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TensorCreationScopeImpl<T : DType, V>(val executionContext: ExecutionContext, val shape: Shape, val dtype: KClass<T>) : TensorCreationScope<T, V>

Implementation of TensorCreationScope

Link copied to clipboard
Link copied to clipboard
annotation class TensorDsl
Link copied to clipboard
class TensorFactoryContext<T : DType, V>(executionContext: ExecutionContext, dtype: KClass<T>)

Context wrapper that provides tensor data factory access

Link copied to clipboard
class TensorInitializer<T : DType, V>(dtype: KClass<T>, shape: Shape, initType: InitializationType<V>)

Initializer that holds the complete tensor specification

Link copied to clipboard
Link copied to clipboard
class TypedDataContextDslImpl<T : DType, V>(baseExecutionContext: ExecutionContext, val defaultDType: KClass<T>) : TypedDataContextDsl<T, V>

Functions

Link copied to clipboard
fun <T : DType, V> TensorBuilder<T, V>.bias(): MLPBias<T, V>

Extension function to access MLP bias creation

Link copied to clipboard

Extension function to access image tensor creation

Link copied to clipboard

Extension function to access image-specific initializers

Link copied to clipboard

Extension function to access convolution kernel creation

Link copied to clipboard
inline fun <T : DType, V> DataContextDsl.matrix(rows: Long, columns: Long, noinline content: TensorCreationScope<T, V>.() -> Tensor<T, V>): Tensor<T, V>
Link copied to clipboard
inline fun <T : DType, V> DataContextDsl.scalar(value: V): Tensor<T, V>
Link copied to clipboard
fun <T : DType, V> tensor(executionContext: ExecutionContext, dtype: KClass<T>, content: TensorDefineDsl<T, V>.() -> Tensor<T, V>): Tensor<T, V>
Link copied to clipboard
inline fun <T : DType, V> DataContextDsl.tensor(noinline content: TensorFactoryContext<T, V>.() -> Tensor<T, V>): Tensor<T, V>
inline fun <T : DType, V> DataContextDsl.tensor(name: String, noinline content: TensorFactoryContext<T, V>.() -> Tensor<T, V>): Tensor<T, V>
Link copied to clipboard
inline fun <T : DType, V> DataContextDsl.vector(length: Long, noinline content: TensorCreationScope<T, V>.() -> Tensor<T, V>): Tensor<T, V>
Link copied to clipboard

Extension function to access MLP weight creation