This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] enhance sparse reduction support
ClosedPublic

Authored by aartbik on Jun 1 2023, 1:43 PM.

Details

Summary

Formerly, we accepted and/prod reductions as a standard
reduction but these change the semantics after sparsification
by not looking at implicit zeros. Therefore, we only accept
standard reductions that are insensitive to implicit vs.
explicit zeros, and leave the more complex reductions to
the sparse_tensor.reduce custom reduction implementation.

Diff Detail

Event Timeline

aartbik created this revision.Jun 1 2023, 1:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 1:43 PM
aartbik requested review of this revision.Jun 1 2023, 1:43 PM
aartbik updated this revision to Diff 527602.Jun 1 2023, 1:55 PM

fixed grammar

Peiming accepted this revision.Jun 1 2023, 4:11 PM
This revision is now accepted and ready to land.Jun 1 2023, 4:11 PM
This revision was automatically updated to reflect the committed changes.