~/bend-docscommunity

src/tensor/contracts/pointwise_records.bend checks

raw source on the hub · import bendtorch-core@0.1.0.0/src/tensor/contracts/pointwise_records.bend as Pointwise_records

4 imports
import Base
import ../../shape/core.bend as Shape
import ../core.bend as Core
import ./pointwise.bend as Pointwise

Types

type PointwiseContract source · line 10 · raw

@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-left:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-right:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-cell:(@_:Nat -> F32) -> @-left_word:(@_:U32 -> F32) -> @-right_word:(@_:U32 -> F32) -> @-result:Pair(Pair(0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Dynamic, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Dynamic), Result<&2, &1, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Error, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.Dynamic>) -> Type

What a pointwise result promises, stated only through the result: success, the output dimensions, cell(i) at every in-bounds output index, and the words both returned inputs still hold. cell, left_word and right_word are the specification; an instance fills them in.