torch.ValidatedRepeatShape
export type ValidatedRepeatShape<
Pattern extends string,
InputShape extends Shape,
Axes extends AxesRecord = Record<string, never>,
> =
RepeatShape<Pattern, InputShape, Axes> extends infer R
? R extends { readonly __isShapeError: true }
? R & readonly number[]
: R extends readonly number[]
? R
: DynamicShape
: DynamicShape;Patternextends stringInputShapeextends ShapeAxesextends AxesRecordValidated repeat shape.