// autodiff_debug.sy — Minimal autodiff test
fn main() {
    begin_tape()

    let w = ones(2, 2)
    let w = register_param("w", w)

    let x = ones(2, 2)

    // Single op: h = x @ w
    let h = t_matmul(x, w)
    println("h:")
    println(h)

    end_tape()
    backward(h)

    let gw = get_grad("w")
    println("grad w:")
    println(gw)
}
