trunk/2b7e5c3ad10b8b7a1e5bda518a3199ce710c39de: Cover what the 1-D sort fast paths have to get right (#196000)
- PyTorch: 539 events in the last 90 days
- PyTorch: 533th Release in the last 90 days
- Previous: earlier the same day · ciflow/torchtitan/195999
What happened
test_sort_1d_parallel only checked integral, ascending sort against a non-decreasing assertion - it never touched NaN placement, -0.0/0.0 equality, descending order, or the stable=True it already passed but never verified. Extends it over floating dtypes too, parametrized on descending/stable, with NaN (both signs), both zeros, and the infinities seeded into the input; checks NaN placement, monotonicity of the rest,…
Summary assembled by rule from the sources below