Skip to content

Commit

Permalink
Fix doc string nits (#23929)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheonhan authored Jun 1, 2023
1 parent 9a35a7b commit af2c367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformers/configuration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class PretrainedConfig(PushToHubMixin):
diversity_penalty (`float`, *optional*, defaults to 0.0):
Value to control diversity for group beam search. that will be used by default in the `generate` method of
the model. 0 means no diversity penalty. The higher the penalty, the more diverse are the outputs.
temperature (`float`, *optional*, defaults to 1):
temperature (`float`, *optional*, defaults to 1.0):
The value used to module the next token probabilities that will be used by default in the `generate` method
of the model. Must be strictly positive.
top_k (`int`, *optional*, defaults to 50):
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/models/vit/image_processing_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ViTImageProcessor(BaseImageProcessor):
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
Scale factor to use if rescaling the image. Can be overridden by the `rescale_factor` parameter in the
`preprocess` method.
do_normalize:
do_normalize (`bool`, *optional*, defaults to `True`):
Whether to normalize the image. Can be overridden by the `do_normalize` parameter in the `preprocess`
method.
image_mean (`float` or `List[float]`, *optional*, defaults to `IMAGENET_STANDARD_MEAN`):
Expand Down

0 comments on commit af2c367

Please sign in to comment.