We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049fbab commit 67b3052Copy full SHA for 67b3052
train.py
@@ -124,7 +124,7 @@ def _map_fn_train(img):
124
g_loss = mse_loss + vgg_loss + g_gan_loss
125
grad = tape.gradient(g_loss, G.trainable_weights)
126
g_optimizer.apply_gradients(zip(grad, G.trainable_weights))
127
- grad = tape.gradient(d_loss, D.weights)
+ grad = tape.gradient(d_loss, D.trainable_weights)
128
d_optimizer.apply_gradients(zip(grad, D.trainable_weights))
129
step += 1
130
epoch = step//n_step_epoch
0 commit comments