Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Default implementation of OperationRegistry

Link copied to clipboard

Global operation registry

Link copied to clipboard

Context for the DSL to define the data type and operations.

Link copied to clipboard

Factory interface for creating operations

Link copied to clipboard
data class OperationMetadata(val name: String, val type: String, val description: String, val inputSpecs: List<ParameterSpec>, val outputSpecs: List<ParameterSpec>, val parameterSpecs: List<ParameterSpec>, val supportsGradients: Boolean = false, val additionalMetadata: Map<String, Any> = emptyMap())

Metadata about an operation type

Link copied to clipboard

Registry for managing operation types and their implementations. Provides centralized management of available operations and their metadata.

Link copied to clipboard
data class ParameterSpec(val name: String, val type: String, val required: Boolean = true, val defaultValue: Any? = null, val description: String = "", val constraints: Map<String, Any> = emptyMap())

Specification for a parameter (input, output, or configuration parameter)

Functions

Link copied to clipboard

Creates a context for the DSL with the given configuration.

Link copied to clipboard
inline fun <T : DType, V> NeuralNetworkContext<T, V>.network(content: NeuralNetworkDsl<T, V>.() -> Unit): Module<T, V>

Extension function to create a network within a NetworkContext. This bridges the context wrapper with the network DSL using the context's tensor factory.