From 8d0767274f05dd2a2a6028b6b4bf88a5f5dcbbc7 Mon Sep 17 00:00:00 2001 From: HAESUNG JEON Date: Tue, 31 Aug 2021 22:42:01 +0900 Subject: [PATCH] Fix typo in models.py config.py has lamda, not lambda --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 2f86cb0..94a669f 100755 --- a/models.py +++ b/models.py @@ -118,7 +118,7 @@ def loss_function(self): - self.final_loss = tf.reduce_sum(tf.abs(self.output_placeholder- (self.output/2+0.5)))/(config.batch_size*config.max_phr_len*64) * config.lambda + tf.reduce_mean(self.D_fake+1e-12) + self.final_loss = tf.reduce_sum(tf.abs(self.output_placeholder- (self.output/2+0.5)))/(config.batch_size*config.max_phr_len*64) * config.lamda + tf.reduce_mean(self.D_fake+1e-12) self.D_loss = tf.reduce_mean(self.D_real +1e-12) - tf.reduce_mean(self.D_fake+1e-12)