Bendtorch.Layer.count: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 158-160 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=158&end_line=160 import Base def Layer.count(-P: Type, -X: Type, -Y: Type, -S: Type, l: Layer
) -> U32: match l: case Layer{fwd, bwd, step, zeros, dump, load, store, count}: count(Unit{}) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Layer