ciflow/torchtitan/201372: Make indexing with uint8 tensors an error
- PyTorch: 2526 events in the last 90 days
- PyTorch: 2493th Release in the last 90 days
- Previous: earlier the same day · ciflow/mps/200802
What happened
Linked issue or supporting maintainer Part of #201298 (tracking issue: #201370 ) Supported by @ezyang BC-breaking? Yes. Indexing with a torch.uint8 tensor ( x[mask] , x[mask] = v , index , index_put_ ) used to treat it as a boolean mask and warn that this was deprecated (since 1.2). It now raises an IndexError . Migrate by converting the mask: x[mask.bool()] . Summary (human written only) Agent details (if applicabl…
Summary assembled by rule from the sources below