With #3010 MIGraphX can fuse pointwise inputs for the Dot/conv instruction for MLIR.
It is not handling Reshapes that happen on pointwise instruction inputs. We can add those.
In general it should handle following patterns:
reshapes (optional) --> pointwise --> reshapes (optional) --> gemm_based_ins --> reshapes(optional) --> pointwise
https://github.com/ROCm/AMDMIGraphX/pull/3010/files#r1648254890
With #3010 MIGraphX can fuse pointwise inputs for the Dot/conv instruction for MLIR. It is not handling Reshapes that happen on pointwise instruction inputs. We can add those.