-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Fix NestedTensor min/max operations for integer dtypes. #167685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: adabeyta <aabeyta@redhat.com>
…min_max_dint # Conflicts: # torch/nested/_internal/ops.py
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/167685
Note: Links to docs will display an error until the docs builds have been completed. ❌ 19 New FailuresAs of commit a4b6907 with merge base a76dd6b ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Signed-off-by: adabeyta <aabeyta@redhat.com>
Fixes: #162049
Summary
max_dim and min_dim functions incorrectly used torch.finfo()
for all dtypes, causing TypeError for integer tensors.
Changes
test_jagged_max_min_dtypescoveringint8, int16, int32, int64, uint8, float16, bfloat16, float32 and float64Testing
Before Fix:
python -m pytest test/test_nestedtensor.py -k "test_jagged_max_min_dtypes" -vOutput:
After Fix:
python -m pytest test/test_nestedtensor.py -k "test_jagged_max_min_dtypes" -vOutput: