Skip to content

Commit 79d2ecb

Browse files
committed
Revert "fixed a bug in sampled_loss(), made compatible for 0.12.0"
1 parent 3607bf4 commit 79d2ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/rnn/translate/seq2seq_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(self,
100100
b = tf.get_variable("proj_b", [self.target_vocab_size], dtype=dtype)
101101
output_projection = (w, b)
102102

103-
def sampled_loss(inputs, labels):
103+
def sampled_loss(labels, inputs):
104104
labels = tf.reshape(labels, [-1, 1])
105105
# We need to compute the sampled_softmax_loss using 32bit floats to
106106
# avoid numerical instabilities.

0 commit comments

Comments
 (0)