• Umang Yadav's avatar
    Add tests for the DepthToSpace+Binary pointwise operations fusion (#987) · eb6abd27
    Umang Yadav authored
    In migraphx, DepthToSpace (d2s) is implemented as reshape --> transpose --> contiguous --> reshape.
    
    If there is trailing binary pointwise operator after depthToSpace then, migraphx can move binary operator before contiguous and reshape of the depthtospce.
    
    So, it becomes reshape-->transpose-->binary_op-->contiguous-->reshape.
    
    Explicit contiguous wouldn't be required since binary_op outputs standard shape. So, it becomes reshape-->transpose-->binary-->reshape.
    
    simplify_reshapes already has matcher that can do this transformation. This PR adds test for cases like depthtospace +binary op.
    
    solves #905
    eb6abd27
simplify_reshapes_test.cpp 44 KB