Refactor, so can bring multi-index transformation and padding support into MIOpen [ROCm/composable_kernel commit: 52c3fe05be]
52c3fe05be