torch.IsShapeError
export type IsShapeError<T> = T extends { readonly __isShapeError: true } ? true : false;TCheck if a type is a shape error (not a valid Shape).
Examples
type A = IsShapeError<readonly [2, 3]>; // false
type B = IsShapeError<matmul_error_inner_dimensions_do_not_match<3, 5, [2,3], [5,4]>>; // true