Last active
July 9, 2019 12:17
-
-
Save e-lin/8db8194e8be3a2fbcef1af354eee24c9 to your computer and use it in GitHub Desktop.
AutoEncoder: Training one Autoencoder at a time in multiple graphs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# image input | |
n_inputs = 28*28 | |
# merged to one stacked AE | |
X = tf.placeholder(tf.float32, shape=[None, n_inputs]) | |
hidden1 = tf.nn.elu(tf.matmul(X, W1) + b1) | |
hidden2 = tf.nn.elu(tf.matmul(hidden1, W2) + b2) | |
hidden3 = tf.nn.elu(tf.matmul(hidden2, W3) + b3) | |
outputs = tf.matmul(hidden3, W4) + b4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment