Post

Replies

Boosts

Views

Activity

GAN with tensorflow-metal gives different results on GPU and CPU
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
7
0
2.1k
Jan ’22