Fix operator precedence bug in cat_out dtype check#18596
Fix operator precedence bug in cat_out dtype check#18596meta-codesync[bot] merged 1 commit intopytorch:mainfrom
Conversation
Summary: The `&&` operator binds tighter than `||` in C++, so the `optimized` flag only gated ScalarType::Int. For all other types (Short, Char, Float, etc.), xa_nn_cat was called unconditionally — even when inputs had mixed dtypes — resulting in raw byte copies without type conversion. Differential Revision: D98801435
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18596
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit e0c1c59 with merge base 4c56d9b ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Differential Revision: D98801435 Pull Request resolved: pytorch#18596
Differential Revision: D98801435 Pull Request resolved: #18596
Differential Revision: D98801435 Pull Request resolved: #18596
Summary: The
&&operator binds tighter than||in C++, so theoptimizedflag only gated ScalarType::Int. For all other types (Short, Char, Float, etc.), xa_nn_cat was called unconditionally — even when inputs had mixed dtypes — resulting in raw byte copies without type conversion.Differential Revision: D98801435