
'''simple docstring'''







from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowercase :  Union[str, Any]    							=       logging.get_logger(__name__)

_lowercase :  str    							=       {
    "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json",
}






class  lowerCAmelCase__   (  lowerCamelCase_     ):
					lowerCAmelCase_        =     '''lxmert'''
					lowerCAmelCase_        =     {}






					def __init__(   self				,							__SCREAMING_SNAKE_CASE=3_05_22				,							__SCREAMING_SNAKE_CASE=7_68				,							__SCREAMING_SNAKE_CASE=12				,							__SCREAMING_SNAKE_CASE=95_00				,							__SCREAMING_SNAKE_CASE=16_00				,							__SCREAMING_SNAKE_CASE=4_00				,							__SCREAMING_SNAKE_CASE=30_72				,							__SCREAMING_SNAKE_CASE="gelu"				,							__SCREAMING_SNAKE_CASE=0.1				,							__SCREAMING_SNAKE_CASE=0.1				,							__SCREAMING_SNAKE_CASE=5_12				,							__SCREAMING_SNAKE_CASE=2				,							__SCREAMING_SNAKE_CASE=0.02				,							__SCREAMING_SNAKE_CASE=1E-1_2				,							__SCREAMING_SNAKE_CASE=9				,							__SCREAMING_SNAKE_CASE=5				,							__SCREAMING_SNAKE_CASE=5				,							__SCREAMING_SNAKE_CASE=20_48				,							__SCREAMING_SNAKE_CASE=4				,							__SCREAMING_SNAKE_CASE=6.67				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							__SCREAMING_SNAKE_CASE=True				,							**__SCREAMING_SNAKE_CASE				,							):


											"""simple docstring"""





											lowercase_	:     List[str]													=       vocab_size
											lowercase_	:     Tuple													=       hidden_size
											lowercase_	:     Optional[int]													=       num_attention_heads
											lowercase_	:     List[Any]													=       hidden_act
											lowercase_	:     int													=       intermediate_size
											lowercase_	:     List[Any]													=       hidden_dropout_prob
											lowercase_	:     Dict													=       attention_probs_dropout_prob
											lowercase_	:     Dict													=       max_position_embeddings
											lowercase_	:     Union[str, Any]													=       type_vocab_size
											lowercase_	:     str													=       initializer_range
											lowercase_	:     Optional[int]													=       layer_norm_eps
											lowercase_	:     Dict													=       num_qa_labels
											lowercase_	:     Tuple													=       num_object_labels
											lowercase_	:     Union[str, Any]													=       num_attr_labels
											lowercase_	:     Tuple													=       l_layers
											lowercase_	:     Any													=       x_layers
											lowercase_	:     List[Any]													=       r_layers
											lowercase_	:     Any													=       visual_feat_dim
											lowercase_	:     Dict													=       visual_pos_dim
											lowercase_	:     int													=       visual_loss_normalizer
											lowercase_	:     List[Any]													=       task_matched
											lowercase_	:     Tuple													=       task_mask_lm
											lowercase_	:     Union[str, Any]													=       task_obj_predict
											lowercase_	:     Optional[int]													=       task_qa
											lowercase_	:     Optional[int]													=       visual_obj_loss
											lowercase_	:     Optional[Any]													=       visual_attr_loss
											lowercase_	:     Union[str, Any]													=       visual_feat_loss
											lowercase_	:     int													=       {'''vision''': r_layers, '''cross_encoder''': x_layers, '''language''': l_layers}
											super().__init__(**__SCREAMING_SNAKE_CASE		)









import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


lowerCamelCase				:		Any     =   logging.get_logger(__name__)







class   A(						UpperCamelCase   ):



 '''simple docstring'''


 def __init__(				self					:  Dict						,							*A_					:  Optional[int]						,							**A_					:  int  )   ->	None:

       """simple docstring"""






       warnings.warn(
           'The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
           ' use DonutImageProcessor instead.'						,							A_						,							)
       super().__init__(*A_						,							**A_  )



