def split

bendtorch-core@0.1.0.0 · src/tensor/permute_build.bend:141

import bendtorch-core@0.1.0.0/src/tensor/permute_build.bend as PermuteBuild
import Base

141# Each half of a fork gets its own clone of the input array.
142def split(state: Array<F32> & Array<F32>) -> (Array<F32> & Array<F32>) & (Array<F32> & Array<F32>):
143  (a, b) = state
144  halves(Array.clone(F32, a), Array.clone(F32, b))

Uses (6)

Used by (6)