AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

Fail in find_inner_broadcast due to preserve_output_layout

Open shivadbhavsar opened this issue 1 year ago • 0 comments

Seen after #3587

Take a very simple program:

arg0 = @param:arg0 -> float_type, {2, 1, 4}, {4, 4, 1}
@1 = multibroadcast[out_lens={1, 2, 3, 4},out_dyn_dims={}](arg0) -> float_type, {1, 2, 3, 4}, {0, 4, 0, 1}
@2 = @return(@1)

This will fail compile at the find_inner_broadcast pass after the layout_convolution pass adds a layout op:

arg0 = @param:arg0 -> float_type, {2, 1, 4}, {4, 4, 1}
@1 = multibroadcast[out_lens={1, 2, 3, 4},out_dyn_dims={}](arg0) -> float_type, {1, 2, 3, 4}, {0, 4, 0, 1}
@2 = layout[permutation={1, 3, 2, 0}](@1) -> float_type, {1, 2, 3, 4}, {1, 12, 1, 3}
@3 = @return(@2)

shivadbhavsar avatar Nov 20 '24 19:11 shivadbhavsar