'''simple docstring'''




import copy
from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging
from ..auto import CONFIG_MAPPING


__UpperCAmelCase					=logging.get_logger(__name__)

__UpperCAmelCase					={
    "microsoft/conditional-detr-resnet-50": (
        "https://huggingface.co/microsoft/conditional-detr-resnet-50/resolve/main/config.json"
    ),
}




class        a__ (  UpperCAmelCase__					):
     lowerCamelCase    :	List[Any]				="conditional_detr"
     lowerCamelCase    :	Dict				=["past_key_values"]
     lowerCamelCase    :	Tuple				={
         "hidden_size": "d_model",
         "num_attention_heads": "encoder_attention_heads",
     }






     def __init__(					self						:						List[str]    ,							a						:						Union[str, Any]=True    ,							a						:						Tuple=None    ,							a						:						List[Any]=3    ,							a						:						Tuple=3_00    ,							a						:						Any=6    ,							a						:						Optional[int]=20_48    ,							a						:						int=8    ,							a						:						str=6    ,							a						:						Dict=20_48    ,							a						:						Optional[Any]=8    ,							a						:						Tuple=0.0    ,							a						:						Tuple=0.0    ,							a						:						List[Any]=True    ,							a						:						Optional[int]="relu"    ,							a						:						Any=2_56    ,							a						:						Any=0.1    ,							a						:						Optional[int]=0.0    ,							a						:						Tuple=0.0    ,							a						:						Tuple=0.02    ,							a						:						str=1.0    ,							a						:						Union[str, Any]=False    ,							a						:						Optional[Any]="sine"    ,							a						:						Optional[int]="resnet50"    ,							a						:						Tuple=True    ,							a						:						List[Any]=False    ,							a						:						str=2    ,							a						:						int=5    ,							a						:						str=2    ,							a						:						List[str]=1    ,							a						:						Optional[int]=1    ,							a						:						List[str]=2    ,							a						:						Tuple=5    ,							a						:						Tuple=2    ,							a						:						Union[str, Any]=0.25    ,							**a						:						str    ,							):





         """simple docstring"""



         if backbone_config is not None and use_timm_backbone:
             raise ValueError('''You can\'t specify both `backbone_config` and `use_timm_backbone`.'''       )

         if not use_timm_backbone:
             if backbone_config is None:
                 logger.info('''`backbone_config` is `None`. Initializing the config with the default `ResNet` backbone.'''       )
                 __lowerCamelCase            =    CONFIG_MAPPING['''resnet'''](out_features=['''stage4''']       )
             elif isinstance(a    ,							a       ):
                 __lowerCamelCase            =    backbone_config.get('''model_type'''       )
                 __lowerCamelCase            =    CONFIG_MAPPING[backbone_model_type]
                 __lowerCamelCase            =    config_class.from_dict(a       )

         __lowerCamelCase            =    use_timm_backbone
         __lowerCamelCase            =    backbone_config
         __lowerCamelCase            =    num_channels
         __lowerCamelCase            =    num_queries
         __lowerCamelCase            =    d_model
         __lowerCamelCase            =    encoder_ffn_dim
         __lowerCamelCase            =    encoder_layers
         __lowerCamelCase            =    encoder_attention_heads
         __lowerCamelCase            =    decoder_ffn_dim
         __lowerCamelCase            =    decoder_layers
         __lowerCamelCase            =    decoder_attention_heads
         __lowerCamelCase            =    dropout
         __lowerCamelCase            =    attention_dropout
         __lowerCamelCase            =    activation_dropout
         __lowerCamelCase            =    activation_function
         __lowerCamelCase            =    init_std
         __lowerCamelCase            =    init_xavier_std
         __lowerCamelCase            =    encoder_layerdrop
         __lowerCamelCase            =    decoder_layerdrop
         __lowerCamelCase            =    encoder_layers
         __lowerCamelCase            =    auxiliary_loss
         __lowerCamelCase            =    position_embedding_type
         __lowerCamelCase            =    backbone
         __lowerCamelCase            =    use_pretrained_backbone
         __lowerCamelCase            =    dilation
         # Hungarian matcher
         __lowerCamelCase            =    class_cost
         __lowerCamelCase            =    bbox_cost
         __lowerCamelCase            =    giou_cost
         # Loss coefficients
         __lowerCamelCase            =    mask_loss_coefficient
         __lowerCamelCase            =    dice_loss_coefficient
         __lowerCamelCase            =    cls_loss_coefficient
         __lowerCamelCase            =    bbox_loss_coefficient
         __lowerCamelCase            =    giou_loss_coefficient
         __lowerCamelCase            =    focal_alpha
         super().__init__(is_encoder_decoder=a    ,							**a       )






     @property
     def   SCREAMING_SNAKE_CASE__  (					self						:						Dict       ):





         """simple docstring"""



         return self.encoder_attention_heads






     @property
     def   SCREAMING_SNAKE_CASE__  (					self						:						Dict       ):





         """simple docstring"""



         return self.d_model






     def   SCREAMING_SNAKE_CASE__  (					self						:						Union[str, Any]       ):





         """simple docstring"""



         __lowerCamelCase            =    copy.deepcopy(self.__dict__       )
         if self.backbone_config is not None:
             __lowerCamelCase            =    self.backbone_config.to_dict()
         __lowerCamelCase            =    self.__class__.model_type
         return output




class        a__ (  UpperCAmelCase__					):
     lowerCamelCase    :	Optional[int]				=version.parse("1.11"					)






     @property
     def   SCREAMING_SNAKE_CASE__  (					self						:						List[Any]       ):





         """simple docstring"""



         return OrderedDict(
             [
                 ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
                 ('''pixel_mask''', {0: '''batch'''}),
             ]       )






     @property
     def   SCREAMING_SNAKE_CASE__  (					self						:						Optional[Any]       ):





         """simple docstring"""



         return 1e-5






     @property
     def   SCREAMING_SNAKE_CASE__  (					self						:						Union[str, Any]       ):





         """simple docstring"""



         return 12

'''simple docstring'''




def __lowerCAmelCase					(				)      ->       Optional[Any]:
    __lowerCamelCase            =    0
    for i in range(1							,    10_01							):
        total += i**i
    return str(UpperCamelCase__							)[-10:]


if __name__ == "__main__":
  print(solution())
