[docstring] fix docstring `DPRConfig` (#26674)

* fix docstring dpr config

* fix style

* Update descp

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>

---------

Co-authored-by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
This commit is contained in:
dekomori_sanae09 2023-10-13 15:43:43 +05:30 committed by GitHub
parent 288bf5c1d2
commit 5bfda28dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,8 @@ class DPRConfig(PretrainedConfig):
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
layer_norm_eps (`float`, *optional*, defaults to 1e-12):
The epsilon used by the layer normalization layers.
pad_token_id (`int`, *optional*, defaults to 0):
Padding token id.
position_embedding_type (`str`, *optional*, defaults to `"absolute"`):
Type of position embedding. Choose one of `"absolute"`, `"relative_key"`, `"relative_key_query"`. For
positional embeddings use `"absolute"`. For more information on `"relative_key"`, please refer to

View File

@ -143,7 +143,6 @@ OBJECTS_TO_IGNORE = [
"CvtConfig",
"CvtModel",
"DeiTImageProcessor",
"DPRConfig",
"DPRReaderTokenizer",
"DPRReaderTokenizerFast",
"DPTModel",