rewrite sgdols for CudaTensor