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


__lowerCAmelCase					:			str			      =		logging.get_logger(__name__)

__lowerCAmelCase					:			Optional[int]			      =		{
    "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json",
}


class 						__lowerCAmelCase	(	lowerCAmelCase_      ):



      """simple docstring"""







      A__	:			int        =    '''lxmert'''
      A__	:			int        =    {}




      def __init__(      self		:       Tuple				,       _snake_case		:       List[Any]=3_0522				,       _snake_case		:       Dict=768				,       _snake_case		:       int=12				,       _snake_case		:       Dict=9500				,       _snake_case		:       List[str]=1600				,       _snake_case		:       int=400				,       _snake_case		:       str=3072				,       _snake_case		:       Optional[int]="gelu"				,       _snake_case		:       List[str]=0.1				,       _snake_case		:       int=0.1				,       _snake_case		:       Any=512				,       _snake_case		:       Optional[int]=2				,       _snake_case		:       List[Any]=0.02				,       _snake_case		:       Optional[int]=1E-1_2				,       _snake_case		:       Dict=9				,       _snake_case		:       int=5				,       _snake_case		:       List[str]=5				,       _snake_case		:       Union[str, Any]=2048				,       _snake_case		:       List[Any]=4				,       _snake_case		:       List[Any]=6.67				,       _snake_case		:       List[Any]=True				,       _snake_case		:       Union[str, Any]=True				,       _snake_case		:       str=True				,       _snake_case		:       Dict=True				,       _snake_case		:       str=True				,       _snake_case		:       List[Any]=True				,       _snake_case		:       int=True				,       **_snake_case		:       Any				,       ):
          __lowercase		:			Optional[Any]	    =       vocab_size
          __lowercase		:			Optional[int]	    =       hidden_size
          __lowercase		:			Union[str, Any]	    =       num_attention_heads
          __lowercase		:			Union[str, Any]	    =       hidden_act
          __lowercase		:			Union[str, Any]	    =       intermediate_size
          __lowercase		:			List[Any]	    =       hidden_dropout_prob
          __lowercase		:			int	    =       attention_probs_dropout_prob
          __lowercase		:			List[Any]	    =       max_position_embeddings
          __lowercase		:			int	    =       type_vocab_size
          __lowercase		:			Dict	    =       initializer_range
          __lowercase		:			Tuple	    =       layer_norm_eps
          __lowercase		:			Optional[int]	    =       num_qa_labels
          __lowercase		:			Optional[Any]	    =       num_object_labels
          __lowercase		:			Dict	    =       num_attr_labels
          __lowercase		:			str	    =       l_layers
          __lowercase		:			str	    =       x_layers
          __lowercase		:			Any	    =       r_layers
          __lowercase		:			Any	    =       visual_feat_dim
          __lowercase		:			List[str]	    =       visual_pos_dim
          __lowercase		:			str	    =       visual_loss_normalizer
          __lowercase		:			Tuple	    =       task_matched
          __lowercase		:			Union[str, Any]	    =       task_mask_lm
          __lowercase		:			int	    =       task_obj_predict
          __lowercase		:			Any	    =       task_qa
          __lowercase		:			Any	    =       visual_obj_loss
          __lowercase		:			str	    =       visual_attr_loss
          __lowercase		:			Any	    =       visual_feat_loss
          __lowercase		:			str	    =       {'''vision''': r_layers, '''cross_encoder''': x_layers, '''language''': l_layers}
          super().__init__(**_snake_case				)




from math import factorial

__lowerCAmelCase					:			Dict			      =		{str(d): factorial(d) for d in range(10)}


def     UpperCAmelCase_  (						__lowerCAmelCase	) ->						int:
    return sum(DIGIT_FACTORIAL[d] for d in str(__lowerCAmelCase	)	)


def     UpperCAmelCase_  (						) ->						int:
    __lowercase		:			int	    =       7 * factorial(9	) + 1
    return sum(i for i in range(3	,					__lowerCAmelCase	) if sum_of_digit_factorial(__lowerCAmelCase	) == i	)


if __name__ == "__main__":
 print(F'{solution() = }')


