def halves

bendtorch-core@0.1.0.0 · src/tensor/gather.bend:273

import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gather
import Base

273def halves(a: Array<F32> & Array<F32>, b: Array<U32> & Array<U32>) ->
274  (Array<F32> & Array<U32>) & (Array<F32> & Array<U32>):
275  (a1, a2) = a
276  (b1, b2) = b
277  ((a1, b1), (a2, b2))

Uses (5)

Used by (2)