def both_parsed
bendtorch-core@0.1.0.0 · src/tensor/batched_matmul.bend:170
import bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend as BatchedMatmul
import Base
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix
170def both_parsed(+left: Operand, result: Result<&2, &2, Matrix.Error, Operand>) -> Result<&2, &2, Matrix.Error, Plan>:
171 match result:
172 case Fail{error}:
173 Fail{error}
174 case Done{+right}:
175 compatible(left, right, Nat.is_eq(U32.to_nat(inner_of(left)), U32.to_nat(inner_of(right))))