






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


_a    :   List[str]        =			logging.get_logger(__name__)

_a    :   Union[str, Any]        =			{
    """unc-nlp/lxmert-base-uncased""": """https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json""",
}







class 	_UpperCAmelCase  (  _A		):




      """simple docstring"""



      A          =    '''lxmert'''
      A          =    {}
      def __init__(   self    ,	_lowerCAmelCase=30_522    ,	_lowerCAmelCase=768    ,	_lowerCAmelCase=12    ,	_lowerCAmelCase=9_500    ,	_lowerCAmelCase=1_600    ,	_lowerCAmelCase=400    ,	_lowerCAmelCase=3_072    ,	_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=2_048    ,	_lowerCAmelCase=4    ,	_lowerCAmelCase=6.67    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	_lowerCAmelCase=True    ,	**_lowerCAmelCase    ,	):



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











def 				snake_case__							(							UpperCAmelCase							:  float       ):

    if edge <= 0 or not isinstance(UpperCAmelCase    ,			UpperCAmelCase       ):
        raise ValueError("Length must be a positive."       )
    return 3 * ((2_5 + 1_0 * (5 ** (1 / 2))) ** (1 / 2)) * (edge**2)


def 				snake_case__							(							UpperCAmelCase							:  float       ):

    if edge <= 0 or not isinstance(UpperCAmelCase    ,			UpperCAmelCase       ):
        raise ValueError("Length must be a positive."       )
    return ((1_5 + (7 * (5 ** (1 / 2)))) / 4) * (edge**3)


if __name__ == "__main__":
 import doctest

 doctest.testmod()



