def matrix_columns

bendtorch-core@0.1.0.0 · src/tensor/contracts/LAWS.bend:144

import bendtorch-core@0.1.0.0/src/tensor/contracts/LAWS.bend as LAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix

144def matrix_columns(-left: Shape.Shape, -right: Shape.Shape, plan: Matrix.Plan<left, right>) -> Nat:
145  Matrix.Plan{output, rows, inner, right_inner, columns, le, re, oe, compatible} = plan
146  U32.to_nat(columns)

Uses (4)

Used by (7)