torch.AssertNoShapeError
export type AssertNoShapeError<S> = S extends { readonly __isShapeError: true } ? never : S;SAssert that a shape is NOT an error. Use: type Check = AssertNoShapeError<SomeShape>; If SomeShape is an error, Check becomes never.