Skip to content

Commit

Permalink
added quick clarification (#33166)
Browse files Browse the repository at this point in the history
* added quick clarification

* cosmetics
  • Loading branch information
DuyguA authored Aug 28, 2024
1 parent 3d79dcb commit 5c1027b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformers/tokenization_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ class BatchEncoding(UserDict):
You can give a tensor_type here to convert the lists of integers in PyTorch/TensorFlow/Numpy Tensors at
initialization.
prepend_batch_axis (`bool`, *optional*, defaults to `False`):
Whether or not to add a batch axis when converting to tensors (see `tensor_type` above).
Whether or not to add a batch axis when converting to tensors (see `tensor_type` above). Note that this
parameter has an effect if the parameter `tensor_type` is set, *otherwise has no effect*.
n_sequences (`Optional[int]`, *optional*):
You can give a tensor_type here to convert the lists of integers in PyTorch/TensorFlow/Numpy Tensors at
initialization.
Expand Down

0 comments on commit 5c1027b

Please sign in to comment.