Add minor fix with GPU name

This commit is contained in:
Maciej Pęśko 2018-11-10 12:52:13 +01:00
parent 258eab15f9
commit fb24d4b156

View file

@ -17,6 +17,6 @@ class ComixGAN:
config.gpu_options.allow_growth = True
self.session = tf.Session(graph=self.graph, config=config)
with self.graph.as_default():
with tf.device('/GPU:0'):
with tf.device('/device:GPU:0'):
self.model = load_model(settings.COMIX_GAN_MODEL_PATH,
custom_objects={'InstanceNormalization': InstanceNormalization})