



'''simple docstring'''


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


lowercase_      :				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      __UpperCamelCase       (_UpperCAmelCase			):
	__A			  =					'''lxmert'''
	__A			  =					{}







	def __init__(    self ,				_lowerCAmelCase=3_0522 ,				_lowerCAmelCase=768 ,				_lowerCAmelCase=12 ,				_lowerCAmelCase=9500 ,				_lowerCAmelCase=1600 ,				_lowerCAmelCase=400 ,				_lowerCAmelCase=3072 ,				_lowerCAmelCase="gelu" ,				_lowerCAmelCase=0.1 ,				_lowerCAmelCase=0.1 ,				_lowerCAmelCase=512 ,				_lowerCAmelCase=2 ,				_lowerCAmelCase=0.02 ,				_lowerCAmelCase=1E-12 ,				_lowerCAmelCase=9 ,				_lowerCAmelCase=5 ,				_lowerCAmelCase=5 ,				_lowerCAmelCase=2048 ,				_lowerCAmelCase=4 ,				_lowerCAmelCase=6.67 ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				_lowerCAmelCase=True ,				**_lowerCAmelCase ,				)    ->    Any:
							'''simple docstring'''






							lowercase        =							vocab_size
							lowercase        =							hidden_size
							lowercase        =							num_attention_heads
							lowercase        =							hidden_act
							lowercase        =							intermediate_size
							lowercase        =							hidden_dropout_prob
							lowercase        =							attention_probs_dropout_prob
							lowercase        =							max_position_embeddings
							lowercase        =							type_vocab_size
							lowercase        =							initializer_range
							lowercase        =							layer_norm_eps
							lowercase        =							num_qa_labels
							lowercase        =							num_object_labels
							lowercase        =							num_attr_labels
							lowercase        =							l_layers
							lowercase        =							x_layers
							lowercase        =							r_layers
							lowercase        =							visual_feat_dim
							lowercase        =							visual_pos_dim
							lowercase        =							visual_loss_normalizer
							lowercase        =							task_matched
							lowercase        =							task_mask_lm
							lowercase        =							task_obj_predict
							lowercase        =							task_qa
							lowercase        =							visual_obj_loss
							lowercase        =							visual_attr_loss
							lowercase        =							visual_feat_loss
							lowercase        =							{"""vision""": r_layers, """cross_encoder""": x_layers, """language""": l_layers}
							super().__init__(**_lowerCAmelCase						)







'''simple docstring'''


import requests







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      str ,  lowercase_    :      str						):
						lowercase        =							{"""Content-Type""": """application/json"""}
						lowercase        =							requests.post(lowercase_ ,  json={"""text""": message_body} ,  headers=lowercase_						)
						if response.status_code != 200:
												lowercase        =							(
												    """Request to slack returned an error """
												    F"""{response.status_code}, the response is:\n{response.text}"""
												)
												raise ValueError(lowercase_						)


if __name__ == "__main__":
						# Set the slack url to the one provided by Slack when you create the webhook at
						# https://my.slack.com/services/new/incoming-webhook/
						send_slack_message('''<YOUR MESSAGE BODY>''', '''<SLACK CHANNEL URL>''')


