You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use linalg.index to lower aten.reflection_pad2d (#4105)
"aten.reflection_pad2d" was lowered to linalg using affine maps of the
form {indexing_maps = [affine_map<(d0, d1) -> (d0, -d1 + 1)>,
affine_map<(d0, d1) -> (d0, d1)>]}.
This causes lowering issues in downstream passes such as
""BinaryOpExpr(AffineBinaryOpExpr): Assertion
`cast(expr.getRHS()).getValue() > 0 && "nonpositive multiplying
coefficient"' failed."
Using linalg.index with tensor.extract op instead of the above affine
map helps in successful compilation of the same.
Signed-off-by: Praveen G <Praveen.G2@amd.com>
0 commit comments