430 B
430 B
micrograd.zig
Implementing Karpathy's micrograd with some help from 0xdeb7ef/microgradz.
Scalar only implementation, the nn.zig module implements Neuron, Layer and MLP to have comptime-known shapes, only the engine.zig module needs runtime-allocated memory.
Setup
Allow direnv
direnv allow
Build
zig build