def read

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

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

123def read(+recipe: Recipe, +position: Nat, state: Array<F32> & Array<F32>) -> F32 & (Array<F32> & Array<F32>):
124  (a, b) = state
125  take(b, Array.get(F32, a, at(recipe, position)))

Uses (9)

Used by (1)