We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3607bf4 commit 79d2ecbCopy full SHA for 79d2ecb
tutorials/rnn/translate/seq2seq_model.py
@@ -100,7 +100,7 @@ def __init__(self,
100
b = tf.get_variable("proj_b", [self.target_vocab_size], dtype=dtype)
101
output_projection = (w, b)
102
103
- def sampled_loss(inputs, labels):
+ def sampled_loss(labels, inputs):
104
labels = tf.reshape(labels, [-1, 1])
105
# We need to compute the sampled_softmax_loss using 32bit floats to
106
# avoid numerical instabilities.
0 commit comments