delete bogus print statement (#3595)
This commit is contained in:
committed by
GitHub
parent
c50aa67bff
commit
f68d22850c
@@ -1177,8 +1177,6 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin):
|
|||||||
beam_tokens = tf.convert_to_tensor([x[1] for x in next_batch_beam], dtype=tf.int32)
|
beam_tokens = tf.convert_to_tensor([x[1] for x in next_batch_beam], dtype=tf.int32)
|
||||||
beam_idx = tf.convert_to_tensor([x[2] for x in next_batch_beam], dtype=tf.int32)
|
beam_idx = tf.convert_to_tensor([x[2] for x in next_batch_beam], dtype=tf.int32)
|
||||||
|
|
||||||
print("Scores: {}-{}".format(cur_len, beam_scores.numpy()))
|
|
||||||
|
|
||||||
# re-order batch
|
# re-order batch
|
||||||
input_ids = tf.stack([tf.identity(input_ids[x, :]) for x in beam_idx])
|
input_ids = tf.stack([tf.identity(input_ids[x, :]) for x in beam_idx])
|
||||||
input_ids = tf.concat([input_ids, tf.expand_dims(beam_tokens, 1)], axis=-1)
|
input_ids = tf.concat([input_ids, tf.expand_dims(beam_tokens, 1)], axis=-1)
|
||||||
|
|||||||
Reference in New Issue
Block a user