class

ConstructionKit::MeanPoolExec

Inherits ConstructionKit::ExecutableNode < Reference < Object

Mean pool: reduce matrix to single row by averaging

Constructors

new(id : String)
Source

Instance methods

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
update(lr : Float64)

Update trainable parameters

Source