ciflow/mps/201372: Make indexing with uint8 tensors an error
- PyTorch 近 90 天出现 2527 次
- PyTorch 近 90 天第 2494 次发版
- 上一次:同一天稍早 · ciflow/mps/200802
发生了什么
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…
摘要按规则整理自下方来源原文