Bendtorch.Opt.sgd_fin: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 419-422 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=419&end_line=422 import Base import bend-ml-tensor-array@0.1.18.0/main.bend as TA # One matrix step, with only the buffers this optimizer reads. def Opt.sgd_fin(-r: Nat, -c: Nat, q: TA.P2) -> MatStep: match q: case TA.P2{w, g}: MatStep{TA.Mat{w}, TA.Mat{g}, NoMom{}} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=P2 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=MatStep https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=OptState