class

ConstructionKit::ExecutableNode

Inherits Reference < Object

Abstract base for all executable graph nodes

Constructors

new(id : String, type : String)
Source

Instance methods

adam_mats
Source
backward(output_grads : Hash(String, MicroGPT::Mat)) : Hash(String, MicroGPT::Mat)

Backward pass: receive gradients for outputs, return gradients for inputs

Source
forward(inputs : Hash(String, Tensor)) : Hash(String, Tensor)

Forward pass: read named inputs, produce named outputs

Source
param_count
Source
type
Source
update(lr : Float64)

Update trainable parameters

Source
weight_mats

Weight access for serialization / checkpoint

Source