← Back to events
ActiveAIRelease1.2

ciflow/torchtitan/201372: Make indexing with uint8 tensors an error

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

Why it's spreading

Sources