Clean up the CPU reference code. No need to duplicate the whole loop.
Clean up the CPU reference code. No need to duplicate the whole loop.

ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile