def halves

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

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

196# Each half of a fork gets its own clone of the contribution array.
197def halves(pair: Array<F32> & Array<F32>) -> (Array<F32> & Unit) & (Array<F32> & Unit):
198  (first, second) = pair
199  ((first, Unit{}), (second, Unit{}))

Uses (5)

Used by (4)