Elementwise.halves: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise Lines 418-423 of bendtorch-core@0.1.0.0/src/tensor/elementwise.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/elementwise.bend&start_line=418&end_line=423 import Base # Each half of a fork gets its own clone of both input arrays, because an # Array has one owner. def halves(lp: Array & Array, rp: Array & Array) -> (Array & Array) & (Array & Array): (l1, l2) = lp (r1, r2) = rp ((l1, r1), (l2, r2)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma