I'm running example from TF site and getting different results from CPU and GPU. Results from GPU are obviously wrong (second image). Why?
If I'm executing code with with tf.device('/cpu:0')
then the code works as expected, but slower.
It's sufficient to execute this lines on CPU to fix the issue:
with tf.device('/cpu:0'):
real_output = discriminator(images, training=True)
fake_output = discriminator(generated_images, training=True)
Source code: https://www.tensorflow.org/tutorials/generative/dcgan
My complete results: https://disk.yandex.ru/d/E-hU5dpffOmkLg
Hi. I have reported this issue more that month ago. You can find in comments to my post that tf.random wrong behavior makes this problem. https://developer.apple.com/forums/thread/696835