


"""simple docstring"""


from collections import OrderedDict
from typing import Mapping

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


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

A  :     Dict    					=    {
    "YituTech/conv-bert-base": "https://huggingface.co/YituTech/conv-bert-base/resolve/main/config.json",
    "YituTech/conv-bert-medium-small": (
        "https://huggingface.co/YituTech/conv-bert-medium-small/resolve/main/config.json"
    ),
    "YituTech/conv-bert-small": "https://huggingface.co/YituTech/conv-bert-small/resolve/main/config.json",
    # See all ConvBERT models at https://huggingface.co/models?filter=convbert
}
class 						_UpperCamelCase						(     lowerCAmelCase__	):
							'''simple docstring'''







							__UpperCAmelCase		:					Any          ="""convbert"""

							def __init__(  self					,     __a=3_05_22					,     __a=7_68					,     __a=12					,     __a=12					,     __a=30_72					,     __a="gelu"					,     __a=0.1					,     __a=0.1					,     __a=5_12					,     __a=2					,     __a=0.0_2					,     __a=1e-1_2					,     __a=1					,     __a=0					,     __a=2					,     __a=7_68					,     __a=2					,     __a=9					,     __a=1					,     __a=None					,     **__a					,     ):
										super().__init__(
										    pad_token_id=__a					,     bos_token_id=__a					,     eos_token_id=__a					,     **__a					,     )

										__lowerCAmelCase       					=    vocab_size
										__lowerCAmelCase       					=    hidden_size
										__lowerCAmelCase       					=    num_hidden_layers
										__lowerCAmelCase       					=    num_attention_heads
										__lowerCAmelCase       					=    intermediate_size
										__lowerCAmelCase       					=    hidden_act
										__lowerCAmelCase       					=    hidden_dropout_prob
										__lowerCAmelCase       					=    attention_probs_dropout_prob
										__lowerCAmelCase       					=    max_position_embeddings
										__lowerCAmelCase       					=    type_vocab_size
										__lowerCAmelCase       					=    initializer_range
										__lowerCAmelCase       					=    layer_norm_eps
										__lowerCAmelCase       					=    embedding_size
										__lowerCAmelCase       					=    head_ratio
										__lowerCAmelCase       					=    conv_kernel_size
										__lowerCAmelCase       					=    num_groups
										__lowerCAmelCase       					=    classifier_dropout
class 						_UpperCamelCase						(     lowerCAmelCase__	):
							'''simple docstring'''







							@property
							def     snake_case       (  self			):
										if self.task == "multiple-choice":
													__lowerCAmelCase       					=    {0: "batch", 1: "choice", 2: "sequence"}
										else:
													__lowerCAmelCase       					=    {0: "batch", 1: "sequence"}
										return OrderedDict(
										    [
										        ("input_ids", dynamic_axis),
										        ("attention_mask", dynamic_axis),
										        ("token_type_ids", dynamic_axis),
										    ]			)








"""simple docstring"""


A  :     List[Any]    					=    [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
A  :     Optional[int]    					=    [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
A  :     Optional[int]    					=    {
    0: "Sunday",
    1: "Monday",
    2: "Tuesday",
    3: "Wednesday",
    4: "Thursday",
    5: "Friday",
    6: "Saturday",
}


def _lowerCamelCase			(	_UpperCamelCase					,				_UpperCamelCase					,				_UpperCamelCase   ):

			'''simple docstring'''




			assert len(str(_UpperCamelCase   )   ) > 2, "year should be in YYYY format"
			assert 1 <= month <= 12, "month should be between 1 to 12"
			assert 1 <= day <= 31, "day should be between 1 to 31"

			# Doomsday algorithm:
			__lowerCAmelCase       					=    year // 100
			__lowerCAmelCase       					=    (5 * (century % 4) + 2) % 7
			__lowerCAmelCase       					=    year % 100
			__lowerCAmelCase       					=    centurian % 12
			__lowerCAmelCase       					=    (
			    (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
			) % 7
			__lowerCAmelCase       					=    (
			    DOOMSDAY_NOT_LEAP[month - 1]
			    if (year % 4 != 0) or (centurian == 0 and (year % 400) == 0)
			    else DOOMSDAY_LEAP[month - 1]
			)
			__lowerCAmelCase       					=    (dooms_day + day - day_anchor) % 7
			return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
	import doctest

	doctest.testmod()




