Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active July 25, 2019 20:18
Show Gist options
  • Save deeperunderstanding/8f8e614eede5b451ef92bedbcc2cc6e7 to your computer and use it in GitHub Desktop.
Save deeperunderstanding/8f8e614eede5b451ef92bedbcc2cc6e7 to your computer and use it in GitHub Desktop.
def create_discriminator(latent_dim):
input_layer = Input(shape=(latent_dim,))
disc = Dense(128)(input_layer)
disc = ELU()(disc)
disc = Dense(64)(disc)
disc = ELU()(disc)
disc = Dense(1, activation="sigmoid")(disc)
model = Model(input_layer, disc)
return model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment