Skip to content

Commit be57dd3

Browse files
committed
typo. fix devsisters#2
1 parent 98261ee commit be57dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _build_model(self):
128128
self.enc_outputs = concat_v2(
129129
[self.first_decoder_input, self.enc_outputs], axis=1)
130130

131-
with tf.variable_scope("dencoder"):
131+
with tf.variable_scope("decoder"):
132132
self.idx_pairs = index_matrix_to_pairs(self.dec_targets)
133133
self.embeded_dec_inputs = tf.stop_gradient(
134134
tf.gather_nd(self.enc_outputs, self.idx_pairs))
@@ -160,7 +160,7 @@ def _build_model(self):
160160
self.dec_pred = tf.argmax(
161161
self.dec_pred_logits, 2, name="dec_pred")
162162

163-
with tf.variable_scope("dencoder", reuse=True):
163+
with tf.variable_scope("decoder", reuse=True):
164164
self.dec_inference_logits, _, _ = decoder_rnn(
165165
self.dec_cell, self.first_decoder_input,
166166
self.enc_outputs, self.enc_final_states,

0 commit comments

Comments
 (0)