def matrices
import bendtorch-core@0.1.0.0/src/tensor/batched_matmul.bend as BatchedMatmulimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
350def matrices(dims: List<&2, U32>, other: List<&2, U32>) -> Bool:
351 Bool.and(Nat.is_eq(Shape.rank_dimensions(dims), 2n), Nat.is_eq(Shape.rank_dimensions(other), 2n))