Enable PerRow(axis) to support axes other than -1
#3303
+120
−15
Merged