Skip to content

Commit

Permalink
Update vae_keras.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bojone authored Jun 10, 2019
1 parent 1311e5d commit dd3e582
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vae_keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from keras import backend as K
from keras import metrics
from keras.datasets import mnist
from keras.utils import to_categorical


batch_size = 100
original_dim = 784
Expand All @@ -34,8 +34,6 @@
x_test = x_test.astype('float32') / 255.
x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:])))
x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:])))
y_train = to_categorical(y_train_, num_classes)
y_test = to_categorical(y_test_, num_classes)


x = Input(shape=(original_dim,))
Expand Down

0 comments on commit dd3e582

Please sign in to comment.