Reduce.keep: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce Lines 185-189 of bendtorch-core@0.1.0.0/src/autograd/reduce.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/reduce.bend&start_line=185&end_line=189 import Base import bendtorch-core@0.1.0.0/src/tensor/parallel.bend as Parallel # The cell function `Parallel.build` runs: its state is the contribution # array, next to a Unit that fills the build's second state slot. def keep(pair: F32 & Array, none: Unit) -> F32 & (Array & Unit): (value, array) = pair (value, (array, none)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit