-
Notifications
You must be signed in to change notification settings - Fork 1.5k
additional info when the shapes don't match #3883
Copy link
Copy link
Closed
Milestone
Description
Is your feature request related to a problem? Please describe.
shape checks such as
MONAI/monai/metrics/meandice.py
Lines 122 to 123 in 82ec2fe
| if y.shape != y_pred.shape: | |
| raise ValueError("y_pred and y should have same shapes.") |
should provide more details about the current shapes for better usability.
raise ValueError(f"y_pred and y should have same shapes, got {y_pred.shape} and {y.shape}.")would be great to review all the error messages... cc @Project-MONAI/core-reviewers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels