function toShapeimport { toShape } from "https://deno.land/x/netsaur@0.2.2/src/core/tensor/util.ts"; toShape<R extends Rank>(shape: Shape[Rank], rank: R): Shape[R]convert a shape to a given rank. Type ParametersR extends RankParametersshape: Shape[Rank]rank: RReturnsShape[R]