~/bend-docscommunity

src/autograd/reduce_fold.bend checks

raw source on the hub · import bendtorch-core@0.1.0.0/src/autograd/reduce_fold.bend as Reduce_fold

6 imports
import Base
import ../shape/core.bend as Shape
import ../tensor/core.bend as Core
import ../tensor/contracts/fold.bend as Fold
import ../tensor/contracts/sum.bend as Sum
import ../tensor/contracts/broadcast.bend as Broadcast

Types

type Cell source · line 12 · raw

Data

Definitions

def target_offset source · line 15 · raw

@plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @position:Nat -> Nat

def contribution_offset source · line 18 · raw

@plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @position:Nat -> Nat

def source source · line 21 · raw

@cell:Cell -> @position:Nat -> Nat

def lands source · line 25 · raw

@cell:Cell -> @position:Nat -> Bool

def cell source · line 29 · raw

@+plan:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.BroadcastPlan -> @+index:U32 -> @input:0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Dynamic -> Pair(0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Dynamic, Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Error, F32>)