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
[TritonGPU] Fix layout error after hoisting convert over ext/broadcast (#7058)
Fixespytorch/pytorch#154933
In the above issue, `hoistConvertOnTopOfExtOrBroadcast` produces an
invalid graph and errors out: a `tt.expand_dims` expects an input with a
blocked layout, but the actual input `tt.make_range` has a linear
layout.
The hoistConvertOnTopOfExtOrBroadcast works like this:
1. find a backward slice from the convert op, stopping at any
extension/broadcast ops
2. from the boundary of convert ops found in step 1, find backward
slices from _those_ ops.
In step 1 and each iteration of step 2, `getConvertBackwardSlice` will
return `failure()` if the graph traversal identifies two conflicting
layout assignments for the same value.
However, the bug is that two separate `getConvertBackwardSlice`
iterations from step 2 may identify conflicting layout assignments for
the same value, and this case was previously not checked.
0 commit comments