init tensor operands also has indexing map and generally follow
the same constraints we expect for non-init-tensor operands.
Depends On D99114
Differential D99115
[mlir][linalg] Support dropping unit dimensions for init tensors antiagainst on Mar 22 2021, 2:48 PM. Authored by
Details init tensor operands also has indexing map and generally follow Depends On D99114
Diff Detail
Event TimelineComment Actions LGTM after minor nit is addressed
Comment Actions this is related to another CL I saw pass by, I think in general dropping 1 dimensions can/should be done with rank-reducing subtensor / subview as they have clear inplace semantics, including in the dynamic case. I do not know the deeper implications of systematically dropping the reshapes on IREE though. |
Could you leave the TODO for reductions? AFAIK, this is something you are going to look into as well?