def keep
import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduceimport 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)
- bendtorch-core@0.1.0.0/src/autograd/reduce:cell_at
- bendtorch-core@0.1.0.0/src/autograd/loss:max_cell
- bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof:keep_equal
- bendtorch-core@0.1.0.0/src/autograd/reduce_replayed_proof:cell_eq
- bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof:cell_keeps