torch.HasShapeError
export type HasShapeError<S> = S extends { readonly __isShapeError: true } ? true : false;SCheck if a shape is an error type. Use this in tests to verify error types are produced.
export type HasShapeError<S> = S extends { readonly __isShapeError: true } ? true : false;SCheck if a shape is an error type. Use this in tests to verify error types are produced.