def split
import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gatherimport 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))