def split

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

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

279# Each half of a fork gets its own copy of both arrays.
280def split(state: Array<F32> & Array<U32>) -> (Array<F32> & Array<U32>) & (Array<F32> & Array<U32>):
281  (a, b) = state
282  halves(Array.clone(F32, a), Array.clone(U32, b))

Uses (7)

Used by (7)