torch.tx.PatternExprShape
export type PatternExprShape<
Pattern extends string,
Shapes extends Record<string, Shape>,
> = EvalExprShape<ParseExprPattern<Pattern>, Shapes>;Patternextends stringShapesextends Record<string, Shape>Compute the result shape for a pattern expression.