Package-level declarations

Types

Link copied to clipboard
class MLP<T : DType, V>(modules: Module<T, V>, val name: String = "FeedForwardNetwork") : Module<T, V> , ModuleParameters<T, V>
Link copied to clipboard
interface ModuleNode

A generic, dtype-agnostic node interface for traversing module hierarchies. This allows programmatic traversal, parameter collection, and introspection without depending on the input/output dtype generics of Module.

Link copied to clipboard
abstract class ModuleNodeAdapter : ModuleNode

Default ModuleNode implementation adapter for legacy Module types. This provides a lightweight bridge to the traversal API without changing the existing Module APIs beyond implementing ModuleNode.

Link copied to clipboard
sealed class ModuleParameter<T : DType, V>
Link copied to clipboard
interface ModuleParameters<T : DType, V>
Link copied to clipboard
data class Parameter(val name: String, val moduleParameter: ModuleParameter<*, *>)

Lightweight wrapper for a trainable parameter. Used for optimizer registration and tracking.

Functions

Link copied to clipboard
Link copied to clipboard
fun bindPaths(root: ModuleNode, base: String = root.name, separator: String = "/")
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Traversal utilities for ModuleNode hierarchies.

Link copied to clipboard
Link copied to clipboard

Zero accumulated gradients for a collection of module parameters.