def padded
import bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend as BatchedMatmulLAWSimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
363# Extents padded with ones on the left to `rank`.
364def padded(+rank: Nat, +dims: List<&2, Nat>) -> List<&2, Nat>:
365 Shape.pad(Nat.sub(rank, List.length(&2, Nat, dims)), dims)