|
@@ -100,7 +100,7 @@ class Seq2SeqModel(object):
|
|
|
b = tf.get_variable("proj_b", [self.target_vocab_size], dtype=dtype)
|
|
|
output_projection = (w, b)
|
|
|
|
|
|
- def sampled_loss(labels, inputs):
|
|
|
+ def sampled_loss(inputs, labels):
|
|
|
labels = tf.reshape(labels, [-1, 1])
|
|
|
# We need to compute the sampled_softmax_loss using 32bit floats to
|
|
|
# avoid numerical instabilities.
|