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
The BroadcastElimination pass has a pattern to push down Broadcast ops (code). That in turn exchanges Collapse and Broadcast ops, which seems to be incorrect.
Specifically, if the Collapse op is collapsing more than 1 dim, the code does not seem to handle that correctly. The focus is only on the first collapse dim as shown here. But the final result of the Collapse op is used for the new Broadcast op here.
It is not clear if the exchangeCollapseRankAndBroadcast is meant to handle all kinds of Collapse ops. If it is only meant to handle the case when there is a single dim collapse, we could return early, which fixes the problem I pointed out above.
The BroadcastElimination pass has a pattern to push down Broadcast ops (code). That in turn exchanges Collapse and Broadcast ops, which seems to be incorrect.
Specifically, if the Collapse op is collapsing more than 1 dim, the code does not seem to handle that correctly. The focus is only on the first collapse dim as shown here. But the final result of the Collapse op is used for the new Broadcast op here.
For example:
When you run
--tensorrt-broadcast-elimination
on the above code, it results in the following error:The text was updated successfully, but these errors were encountered: