Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Some question about accuracy.

Open Ayle3125 opened this issue 9 years ago • 1 comments

Is there any different influence to accuracy between GPU and CPU? How about Distributed Training?

Thanks

Ayle3125 avatar Mar 30 '17 10:03 Ayle3125

CPU and GPU hardware on the calculation accuracy is no difference. But the CPU and GPU implementation of the same algorithm may be different, resulting in differences in the results of the calculation. One common implementation difference is that multiple floating point numbers are summed in a different way. Such as: sum_cpu and sum_gpu may be a bit different.

sum_cpu = ((f1 + f2)  + f3) + f4;
sum_gpu = (f1 + f2) + (f3 + f4); 

Distributed computing also this problem.

hedaoyuan avatar Mar 31 '17 13:03 hedaoyuan