def scatter_cell

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

import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice
import Base

279def scatter_cell(+plan: Plan, +position: Nat, state: Array<F32> & Array<F32>, inside: Bool) -> F32 & (Array<F32> & Array<F32>):
280  match inside:
281    case False{}:
282      (0.0, state)
283    case True{}:
284      scattered(state, target(plan, position))

Uses (9)

Used by (6)