class

MicroGPT::Linear

Inherits MicroGPT::Layer < Reference < Object

Constructors

new(d_in : Int32, d_out : Int32)
Source

Instance methods

adam_b
Source
adam_w
Source
backward(grad : Mat) : Mat
Source
backward_accumulate(grad : Mat) : Mat
Source
forward(x : Mat) : Mat
Source
forward_matmul_only(x : Mat) : Mat

Matmul only (no bias) — for use with fused_bias_relu

Source
update(lr : Float64)
Source