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:
bilibili12433014 2025-05-14 01:17:15 +08:00 committed by GitHub
parent b499a14b17
commit b311a3f506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
"""