def out_balanced

bendtorch-core@0.1.0.0 · src/tensor/contracts/matmul_parallel_proof.bend:253

import bendtorch-core@0.1.0.0/src/tensor/contracts/matmul_parallel_proof.bend as MatmulParallelProof
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/model.bend as Model
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws

253def out_balanced(+span: Nat, +columns: Nat, +left: Shape.Shape, +left_fill: F32, +left_ops: List<&2, StorageLaws.Op>, +right: Shape.Shape, +right_fill: F32, +right_ops: List<&2, StorageLaws.Op>, +count: Nat, +depth: Nat, +base: Nat) -> Model.Balanced(F32, depth, out_spec(span, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, depth, base)):
254  match depth:
255    case 0n:
256      Unit{}
257    case 1n+inner:
258      (out_balanced(span, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, base), out_balanced(span, columns, left, left_fill, left_ops, right, right_fill, right_ops, count, inner, Nat.add(Model.capacity(inner), base)))

Uses (11)

Used by (2)