Fix TF input docstrings to refer to tf.Tensor rather than torch.FloatTensor. (#4051)

This commit is contained in:
Jared T Nielsen
2020-04-30 06:28:56 -06:00
committed by GitHub
parent e73595bd64
commit 64070cbb88
9 changed files with 47 additions and 47 deletions

View File

@@ -491,7 +491,7 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin):
input_ids: (`optional`) `tf.Tensor` of `dtype=tf.int32` of shape `(batch_size, sequence_length)`
The sequence used as a prompt for the generation. If `None` the method initializes
it as an empty `torch.LongTensor` of shape `(1,)`.
it as an empty `tf.Tensor` of shape `(1,)`.
max_length: (`optional`) int
The max length of the sequence to be generated. Between 1 and infinity. Default to 20.