



from collections import OrderedDict
from typing import List, Mapping

from packaging import version

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


_lowercase     							=						logging.get_logger(__name__)

_lowercase     							=						{
    '''google/efficientnet-b7''': '''https://huggingface.co/google/efficientnet-b7/resolve/main/config.json''',
}
class 				__A					( A_      ):
			UpperCamelCase					:Tuple     =			'''efficientnet'''





			def __init__(self							,    __magic_name__ = 3							,    __magic_name__ = 600							,    __magic_name__ = 2.0							,    __magic_name__ = 3.1							,    __magic_name__ = 8							,    __magic_name__ = [3, 3, 5, 3, 5, 5, 3]							,    __magic_name__ = [32, 16, 24, 40, 80, 112, 192]							,    __magic_name__ = [16, 24, 40, 80, 112, 192, 320]							,    __magic_name__ = []							,    __magic_name__ = [1, 2, 2, 2, 1, 2, 1]							,    __magic_name__ = [1, 2, 2, 3, 3, 4, 1]							,    __magic_name__ = [1, 6, 6, 6, 6, 6, 6]							,    __magic_name__ = 0.25							,    __magic_name__ = "swish"							,    __magic_name__ = 2560							,    __magic_name__ = "mean"							,    __magic_name__ = 0.02							,    __magic_name__ = 0.0_01							,    __magic_name__ = 0.99							,    __magic_name__ = 0.5							,    __magic_name__ = 0.2							,    **__magic_name__							,    ):
						super().__init__(**__magic_name__				)

						lowerCamelCase__ :      Any								=		num_channels
						lowerCamelCase__ :      List[Any]								=		image_size
						lowerCamelCase__ :      Optional[Any]								=		width_coefficient
						lowerCamelCase__ :      str								=		depth_coefficient
						lowerCamelCase__ :      int								=		depth_divisor
						lowerCamelCase__ :      List[Any]								=		kernel_sizes
						lowerCamelCase__ :      Optional[int]								=		in_channels
						lowerCamelCase__ :      Optional[Any]								=		out_channels
						lowerCamelCase__ :      str								=		depthwise_padding
						lowerCamelCase__ :      str								=		strides
						lowerCamelCase__ :      Union[str, Any]								=		num_block_repeats
						lowerCamelCase__ :      Optional[int]								=		expand_ratios
						lowerCamelCase__ :      Tuple								=		squeeze_expansion_ratio
						lowerCamelCase__ :      int								=		hidden_act
						lowerCamelCase__ :      Optional[int]								=		hidden_dim
						lowerCamelCase__ :      Tuple								=		pooling_type
						lowerCamelCase__ :      Tuple								=		initializer_range
						lowerCamelCase__ :      Union[str, Any]								=		batch_norm_eps
						lowerCamelCase__ :      Any								=		batch_norm_momentum
						lowerCamelCase__ :      Tuple								=		dropout_rate
						lowerCamelCase__ :      Any								=		drop_connect_rate
						lowerCamelCase__ :      Optional[Any]								=		sum(__magic_name__				) * 4







class 				__A					( A_      ):
			UpperCamelCase					:List[str]     =			version.parse('''1.11'''      )





			@property
			def        _snake_case    (self				):
						return OrderedDict(
						    [
						        ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
						    ]				)





			@property
			def        _snake_case    (self				):
						return 1E-5








from ... import PretrainedConfig


_lowercase     							=						{
    '''sijunhe/nezha-cn-base''': '''https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json''',
}
class 				__A					( A_      ):
			UpperCamelCase					:Optional[Any]     =			NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
			UpperCamelCase					:int     =			'''nezha'''





			def __init__(self							,    __magic_name__=21128							,    __magic_name__=768							,    __magic_name__=12							,    __magic_name__=12							,    __magic_name__=3072							,    __magic_name__="gelu"							,    __magic_name__=0.1							,    __magic_name__=0.1							,    __magic_name__=512							,    __magic_name__=64							,    __magic_name__=2							,    __magic_name__=0.02							,    __magic_name__=1E-12							,    __magic_name__=0.1							,    __magic_name__=0							,    __magic_name__=2							,    __magic_name__=3							,    __magic_name__=True							,    **__magic_name__							,    ):
						super().__init__(pad_token_id=__magic_name__							,    bos_token_id=__magic_name__							,    eos_token_id=__magic_name__							,    **__magic_name__				)

						lowerCamelCase__ :      List[str]								=		vocab_size
						lowerCamelCase__ :      int								=		hidden_size
						lowerCamelCase__ :      int								=		num_hidden_layers
						lowerCamelCase__ :      Optional[int]								=		num_attention_heads
						lowerCamelCase__ :      Dict								=		hidden_act
						lowerCamelCase__ :      str								=		intermediate_size
						lowerCamelCase__ :      Optional[Any]								=		hidden_dropout_prob
						lowerCamelCase__ :      Dict								=		attention_probs_dropout_prob
						lowerCamelCase__ :      str								=		max_position_embeddings
						lowerCamelCase__ :      Optional[Any]								=		max_relative_position
						lowerCamelCase__ :      Optional[int]								=		type_vocab_size
						lowerCamelCase__ :      Optional[Any]								=		initializer_range
						lowerCamelCase__ :      Any								=		layer_norm_eps
						lowerCamelCase__ :      Union[str, Any]								=		classifier_dropout
						lowerCamelCase__ :      Union[str, Any]								=		use_cache



