BendMlTensorFork.lab_fit: def of bend-ml-tensor-fork@0.1.6.0 Import: import bend-ml-tensor-fork@0.1.6.0/main.bend as BendMlTensorFork Lines 384-390 of bend-ml-tensor-fork@0.1.6.0/main.bend: https://jend.leeeet.dev/read.txt?path=bend-ml-tensor-fork@0.1.6.0/main.bend&start_line=384&end_line=390 import Base # a label past the row gives p = 0 and no one-hot cell, as c does: kept as c so that it fits a U32 def lab_fit(inside: Bool, +y: Nat, +c: Nat) -> Nat: match inside: case True{}: y case False{}: c Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat