


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


UpperCAmelCase    =					logging.get_logger(__name__)

UpperCAmelCase    =					{
    """microsoft/cvt-13""": """https://huggingface.co/microsoft/cvt-13/resolve/main/config.json""",
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}







class lowerCAmelCase_		(				lowerCamelCase__ ):

 '''simple docstring'''

 __snake_case				=						"cvt"



 def __init__(			self	,   _UpperCAmelCase=3	,   _UpperCAmelCase=[7, 3, 3]	,   _UpperCAmelCase=[4, 2, 2]	,   _UpperCAmelCase=[2, 1, 1]	,   _UpperCAmelCase=[64, 1_92, 3_84]	,   _UpperCAmelCase=[1, 3, 6]	,   _UpperCAmelCase=[1, 2, 10]	,   _UpperCAmelCase=[4.0, 4.0, 4.0]	,   _UpperCAmelCase=[0.0, 0.0, 0.0]	,   _UpperCAmelCase=[0.0, 0.0, 0.0]	,   _UpperCAmelCase=[0.0, 0.0, 0.1]	,   _UpperCAmelCase=[True, True, True]	,   _UpperCAmelCase=[False, False, True]	,   _UpperCAmelCase=["dw_bn", "dw_bn", "dw_bn"]	,   _UpperCAmelCase=[3, 3, 3]	,   _UpperCAmelCase=[1, 1, 1]	,   _UpperCAmelCase=[2, 2, 2]	,   _UpperCAmelCase=[1, 1, 1]	,   _UpperCAmelCase=[1, 1, 1]	,   _UpperCAmelCase=0.02	,   _UpperCAmelCase=1E-12	,   **_UpperCAmelCase	,   ):
       super().__init__(**_UpperCAmelCase      )
       snake_case_ =   num_channels
       snake_case_ =   patch_sizes
       snake_case_ =   patch_stride
       snake_case_ =   patch_padding
       snake_case_ =   embed_dim
       snake_case_ =   num_heads
       snake_case_ =   depth
       snake_case_ =   mlp_ratio
       snake_case_ =   attention_drop_rate
       snake_case_ =   drop_rate
       snake_case_ =   drop_path_rate
       snake_case_ =   qkv_bias
       snake_case_ =   cls_token
       snake_case_ =   qkv_projection_method
       snake_case_ =   kernel_qkv
       snake_case_ =   padding_kv
       snake_case_ =   stride_kv
       snake_case_ =   padding_q
       snake_case_ =   stride_q
       snake_case_ =   initializer_range
       snake_case_ =   layer_norm_eps



import requests






def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      ,      SCREAMING_SNAKE_CASE      )->						None:




      """simple docstring"""

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


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>""")