



"""simple docstring"""
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


__SCREAMING_SNAKE_CASE	:    Union[str, Any]     				=   logging.get_logger(__name__)

__SCREAMING_SNAKE_CASE	:    Dict     				=   {
    '''google/efficientnet-b7''': '''https://huggingface.co/google/efficientnet-b7/resolve/main/config.json''',
}


class 				lowerCamelCase_( lowerCAmelCase_     ):





					'''simple docstring'''



					lowercase__ :							Tuple              =			'efficientnet'

					def __init__(     self					,							lowerCamelCase__ = 3					,							lowerCamelCase__ = 6_0_0					,							lowerCamelCase__ = 2.0					,							lowerCamelCase__ = 3.1					,							lowerCamelCase__ = 8					,							lowerCamelCase__ = [3, 3, 5, 3, 5, 5, 3]					,							lowerCamelCase__ = [3_2, 1_6, 2_4, 4_0, 8_0, 1_1_2, 1_9_2]					,							lowerCamelCase__ = [1_6, 2_4, 4_0, 8_0, 1_1_2, 1_9_2, 3_2_0]					,							lowerCamelCase__ = []					,							lowerCamelCase__ = [1, 2, 2, 2, 1, 2, 1]					,							lowerCamelCase__ = [1, 2, 2, 3, 3, 4, 1]					,							lowerCamelCase__ = [1, 6, 6, 6, 6, 6, 6]					,							lowerCamelCase__ = 0.2_5					,							lowerCamelCase__ = "swish"					,							lowerCamelCase__ = 2_5_6_0					,							lowerCamelCase__ = "mean"					,							lowerCamelCase__ = 0.0_2					,							lowerCamelCase__ = 0.0_0_1					,							lowerCamelCase__ = 0.9_9					,							lowerCamelCase__ = 0.5					,							lowerCamelCase__ = 0.2					,							**lowerCamelCase__					,							):
									super().__init__(**__lowerCAmelCase )

									_lowerCamelCase   	=					num_channels
									_lowerCamelCase   	=					image_size
									_lowerCamelCase   	=					width_coefficient
									_lowerCamelCase   	=					depth_coefficient
									_lowerCamelCase   	=					depth_divisor
									_lowerCamelCase   	=					kernel_sizes
									_lowerCamelCase   	=					in_channels
									_lowerCamelCase   	=					out_channels
									_lowerCamelCase   	=					depthwise_padding
									_lowerCamelCase   	=					strides
									_lowerCamelCase   	=					num_block_repeats
									_lowerCamelCase   	=					expand_ratios
									_lowerCamelCase   	=					squeeze_expansion_ratio
									_lowerCamelCase   	=					hidden_act
									_lowerCamelCase   	=					hidden_dim
									_lowerCamelCase   	=					pooling_type
									_lowerCamelCase   	=					initializer_range
									_lowerCamelCase   	=					batch_norm_eps
									_lowerCamelCase   	=					batch_norm_momentum
									_lowerCamelCase   	=					dropout_rate
									_lowerCamelCase   	=					drop_connect_rate
									_lowerCamelCase   	=					sum(__lowerCAmelCase ) * 4


class 				lowerCamelCase_( lowerCAmelCase_     ):





					'''simple docstring'''



					lowercase__ :							Union[str, Any]              =			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

"""simple docstring"""


from transformers import BertTokenizerFast

from .custom_tokenization import CustomTokenizer


class 							a					(		lowerCAmelCase_ ):
    _snake_case  :	Dict  				=				CustomTokenizer
    pass
