def eight_leaves_of_certified

bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:634

import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul
import Base
import bendtorch-core@0.1.0.0/src/tensor/parallel.bend as Parallel

634# The build is a balanced tree of its depth, whatever the split: the erased
635# certificate of the output storage.
636def eight_leaves_of_certified(+cells: Eight, state: Array<F32> & Array<F32>) ->
637  Parallel.Certified<(Array<F32> & Array<F32>), 3n, eight_leaves_of(cells, state)>:
638  Eight{+w0, +w1, +w2, +w3, +w4, +w5, +w6, +w7} = cells
639  Parallel.Certified{(ANode{ANode{ANode{ALeaf{w0}, ALeaf{w1}}, ANode{ALeaf{w2}, ALeaf{w3}}}, ANode{ANode{ALeaf{w4}, ALeaf{w5}}, ANode{ALeaf{w6}, ALeaf{w7}}}}, state),
640    {==}, (((Unit{}, Unit{}), (Unit{}, Unit{})), ((Unit{}, Unit{}), (Unit{}, Unit{})))}

Uses (8)

Used by (2)