removed unneccessary gather when use_gpu == 0