Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

Commit 63c2988

Browse files
committed
delete dead code
1 parent f954fce commit 63c2988

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

assignments/chatbot/model.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,9 @@ def _creat_optimizer(self):
110110
print('Create optimizer... \nIt might take a couple of minutes depending on how many buckets you have.')
111111
with tf.variable_scope('training') as scope:
112112
self.global_step = tf.Variable(0, dtype=tf.int32, trainable=False, name='global_step')
113-
# self.lr = tf.Variable(float(config.LR), trainable=False)
114-
# self.lr_decay_op = self.lr.assign(self.lr * config.LR_DECAY_FACTOR)
115-
self.lr = config.LR
116113

117114
if not self.fw_only:
118-
self.optimizer = tf.train.GradientDescentOptimizer(self.lr)
115+
self.optimizer = tf.train.GradientDescentOptimizer(config.LR)
119116
trainables = tf.trainable_variables()
120117
self.gradient_norms = []
121118
self.train_ops = []

0 commit comments

Comments
 (0)