Skip to content

Commit 39e4845

Browse files
author
cfav-dev
committed
dev(C4W3 ugl): rename class
1 parent 508627a commit 39e4845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Course 4 - Generative Deep Learning/W3/ungraded_labs/C4_W3_Lab_1_VAE_MNIST.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
},
218218
"outputs": [],
219219
"source": [
220-
"class KLDLoss(tf.keras.layers.Layer):\n",
220+
"class KLDLayer(tf.keras.layers.Layer):\n",
221221
" def call(self, inputs):\n",
222222
" \"\"\"Computes the KLD loss and adds it to the model\n",
223223
"\n",
@@ -336,7 +336,7 @@
336336
" z = Sampling()((mu, sigma))\n",
337337
"\n",
338338
" # feed mu and sigma to the KLD layer\n",
339-
" kl_loss = KLDLoss()((mu, sigma))\n",
339+
" kl_loss = KLDLayer()((mu, sigma))\n",
340340
"\n",
341341
" # build the whole encoder model\n",
342342
" model = tf.keras.Model(inputs=inputs, outputs=[z, kl_loss])\n",

0 commit comments

Comments
 (0)