← 返回事件
持续讨论AI发版0.999

trunk/df5fda033dc2de824e73fff97bdbd808d80ebed0: [MPS] Use histc and index_add_ atomic kernels for bincount (#201045)

发生了什么

Fixes #201038 MPS Graph integer scatter add was slow when most inputs fell ine a single bin. This PR changes it so that unweighted bincount uses histc kernel as on CUDA and weighted bincount uses index add. Perf x p weights main ms after ms speedup torch.randint(1, 64, (4194304,)) 0.999 - 6776.655 0.533 12718x torch.randint(1, 630, (4194304,)) 0.999 - 6269.008 0.548 11442x torch.randint(1, 630, (4194304,)) 0.999 tor…

摘要按规则整理自下方来源原文

为什么在扩散

来源