Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b914ec98
Unverified
Commit
b914ec98
authored
Jul 26, 2023
by
Eric Bezzam
Committed by
GitHub
Jul 26, 2023
Browse files
Fix ViT docstring regarding default dropout values. (#25118)
Fix docstring for dropout.
parent
1486d2ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/vit/configuration_vit.py
src/transformers/models/vit/configuration_vit.py
+2
-2
No files found.
src/transformers/models/vit/configuration_vit.py
View file @
b914ec98
...
...
@@ -55,9 +55,9 @@ class ViTConfig(PretrainedConfig):
hidden_act (`str` or `function`, *optional*, defaults to `"gelu"`):
The non-linear activation function (function or string) in the encoder and pooler. If string, `"gelu"`,
`"relu"`, `"selu"` and `"gelu_new"` are supported.
hidden_dropout_prob (`float`, *optional*, defaults to 0.
1
):
hidden_dropout_prob (`float`, *optional*, defaults to 0.
0
):
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
attention_probs_dropout_prob (`float`, *optional*, defaults to 0.
1
):
attention_probs_dropout_prob (`float`, *optional*, defaults to 0.
0
):
The dropout ratio for the attention probabilities.
initializer_range (`float`, *optional*, defaults to 0.02):
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment