def cells

bendtorch-core@0.1.0.0 · src/autograd/tensor_vjp_LAWS.bend:26

import bendtorch-core@0.1.0.0/src/autograd/tensor_vjp_LAWS.bend as TensorVjpLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import bendtorch-core@0.1.0.0/src/tensor/contracts/binary_LAWS.bend as Binary

26# The words of a pointwise product in index order: word k is
27# scalar(operation, left[left_map(plan, k)], right[right_map(plan, k)]), the
28# value the pointwise family's broadcast instance writes at k
29# (`binary_LAWS.bend` in the tensor contracts).
30def cells(+operation: Elementwise.Operation, +plan: Shape.BroadcastPlan,
31  +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>,
32  +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +count: Nat) -> List<&2, F32>:
33  Binary.cells(operation, plan, left, left_fill, left_ops, right, right_fill, right_ops, count)

Uses (8)

Used by (7)