Skip to content

Instantly share code, notes, and snippets.

@chaserileyroberts
Created October 15, 2017 04:58
Show Gist options
  • Save chaserileyroberts/eeb15e6930f9251d88fbb8a13a4d4a83 to your computer and use it in GitHub Desktop.
Save chaserileyroberts/eeb15e6930f9251d88fbb8a13a4d4a83 to your computer and use it in GitHub Desktop.
class GAN:
def __init__(self, z_vector, true_images):
# Pretend these are implemented.
with tf.variable_scope("gen"):
self.make_geneator(z_vector)
with tf.variable_scope("des"):
self.make_descriminator(true_images)
opt = tf.AdamOptimizer()
train_descrim = opt.minimize(self.descrim_loss)
train_gen = opt.minimize(self.gen_loss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment