def scatter_cell

bendtorch-core@0.1.0.0 · src/tensor/gather.bend:342

import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gather
import Base

342def scatter_cell(+plan: Plan, +at: Nat, state: Array<F32> & Array<U32>, inside: Bool) -> F32 & (Array<F32> & Array<U32>):
343  match inside:
344    case False{}:
345      (0.0, state)
346    case True{}:
347      scattered(plan, at, state)

Uses (9)

Used by (5)