torch.ValidateEinsum
export type ValidateEinsum<E extends string, Shapes extends readonly Shape[]> =
// Check operand count
ValidateOperandCount<E, Shapes['length']> extends true
? // Check ranks
ValidateRanks<E, Shapes>
: ValidateOperandCount<E, Shapes['length']>;Eextends stringShapesextends readonly Shape[]Combined validation for einsum.
Returns true if valid, or an error type if invalid.