mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Fix description and formatting errors in code docs (#38074)
* Update stopping_criteria.py Fix description and formatting errors. * Update stopping_criteria.py Align formatting with existing files for consistency.
This commit is contained in:
parent
b499a14b17
commit
b311a3f506
@ -37,8 +37,9 @@ STOPPING_CRITERIA_INPUTS_DOCSTRING = r"""
|
||||
Additional stopping criteria specific kwargs.
|
||||
|
||||
Return:
|
||||
`torch.BoolTensor`. (`torch.BoolTensor` of shape `(batch_size, 1)`), where `True` indicates we stop generation
|
||||
for a particular row, `True` indicates we should continue.
|
||||
`torch.BoolTensor`. (`torch.BoolTensor` of shape `(batch_size, 1)`):
|
||||
`True` indicates we stop generation for a particular row.
|
||||
`False` indicates we should continue.
|
||||
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user