def keep

bendtorch-core@0.1.0.0 · src/autograd/reduce.bend:185

import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce
import Base
import bendtorch-core@0.1.0.0/src/tensor/parallel.bend as Parallel

185# The cell function `Parallel.build` runs: its state is the contribution
186# array, next to a Unit that fills the build's second state slot.
187def keep(pair: F32 & Array<F32>, none: Unit) -> F32 & (Array<F32> & Unit):
188  (value, array) = pair
189  (value, (array, none))

Uses (5)

Used by (5)