This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Add dim(expand_shape/collapse_shape) folding
ClosedPublic

Authored by springerm on Nov 22 2022, 3:40 AM.

Diff Detail

Event Timeline

springerm created this revision.Nov 22 2022, 3:40 AM
springerm requested review of this revision.Nov 22 2022, 3:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 22 2022, 3:40 AM
nicolasvasilache accepted this revision.Nov 22 2022, 8:02 AM
nicolasvasilache added inline comments.
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
1500

This looks like a helper we want directly on the op

1514

note: ongoing work wants to extend the semantic of this op, can you add an assert(llvm::count_if(...)) ?

This revision is now accepted and ready to land.Nov 22 2022, 8:02 AM
springerm updated this revision to Diff 477208.Nov 22 2022, 8:26 AM

address comments

This revision was landed with ongoing or failed builds.Nov 22 2022, 8:36 AM
This revision was automatically updated to reflect the committed changes.