Skip to content

Commit 67b3052

Browse files
authored
Update train.py
1 parent 049fbab commit 67b3052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _map_fn_train(img):
124124
g_loss = mse_loss + vgg_loss + g_gan_loss
125125
grad = tape.gradient(g_loss, G.trainable_weights)
126126
g_optimizer.apply_gradients(zip(grad, G.trainable_weights))
127-
grad = tape.gradient(d_loss, D.weights)
127+
grad = tape.gradient(d_loss, D.trainable_weights)
128128
d_optimizer.apply_gradients(zip(grad, D.trainable_weights))
129129
step += 1
130130
epoch = step//n_step_epoch

0 commit comments

Comments
 (0)