


'''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


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

lowerCAmelCase    :     int					=						{
    '''google/efficientnet-b7''': '''https://huggingface.co/google/efficientnet-b7/resolve/main/config.json''',
}
class 	UpperCamelCase__					( a__	):



     """simple docstring"""






     __magic_name__    			=    """efficientnet"""




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

            '''simple docstring'''

            super().__init__(**lowerCAmelCase__   )

            _lowerCAmelCase    :							Optional[Any]   			=       num_channels
            _lowerCAmelCase    :							List[str]   			=       image_size
            _lowerCAmelCase    :							Any   			=       width_coefficient
            _lowerCAmelCase    :							Optional[int]   			=       depth_coefficient
            _lowerCAmelCase    :							Tuple   			=       depth_divisor
            _lowerCAmelCase    :							Any   			=       kernel_sizes
            _lowerCAmelCase    :							Any   			=       in_channels
            _lowerCAmelCase    :							int   			=       out_channels
            _lowerCAmelCase    :							List[Any]   			=       depthwise_padding
            _lowerCAmelCase    :							Optional[Any]   			=       strides
            _lowerCAmelCase    :							List[Any]   			=       num_block_repeats
            _lowerCAmelCase    :							List[Any]   			=       expand_ratios
            _lowerCAmelCase    :							List[str]   			=       squeeze_expansion_ratio
            _lowerCAmelCase    :							List[Any]   			=       hidden_act
            _lowerCAmelCase    :							List[Any]   			=       hidden_dim
            _lowerCAmelCase    :							int   			=       pooling_type
            _lowerCAmelCase    :							Any   			=       initializer_range
            _lowerCAmelCase    :							List[Any]   			=       batch_norm_eps
            _lowerCAmelCase    :							Dict   			=       batch_norm_momentum
            _lowerCAmelCase    :							int   			=       dropout_rate
            _lowerCAmelCase    :							List[str]   			=       drop_connect_rate
            _lowerCAmelCase    :							Dict   			=       sum(lowerCAmelCase__   ) * 4
class 	UpperCamelCase__					( a__	):



     """simple docstring"""






     __magic_name__    			=    version.parse("1.11"	)




     @property
     def a	( self   ):

            '''simple docstring'''

            return OrderedDict(
                [
                    ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
                ]   )





     @property
     def a	( self   ):

            '''simple docstring'''

            return 1E-5





'''simple docstring'''







from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCAmelCase    :     Optional[int]					=						{
    """configuration_mctct""": ["""MCTCT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """MCTCTConfig"""],
    """feature_extraction_mctct""": ["""MCTCTFeatureExtractor"""],
    """processing_mctct""": ["""MCTCTProcessor"""],
}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       lowerCAmelCase    :     List[str]					=						[
           """MCTCT_PRETRAINED_MODEL_ARCHIVE_LIST""",
           """MCTCTForCTC""",
           """MCTCTModel""",
           """MCTCTPreTrainedModel""",
       ]


if TYPE_CHECKING:
       from .configuration_mctct import MCTCT_PRETRAINED_CONFIG_ARCHIVE_MAP, MCTCTConfig
       from .feature_extraction_mctct import MCTCTFeatureExtractor
       from .processing_mctct import MCTCTProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_mctct import MCTCT_PRETRAINED_MODEL_ARCHIVE_LIST, MCTCTForCTC, MCTCTModel, MCTCTPreTrainedModel

else:
       import sys

       lowerCAmelCase    :     Tuple					=						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)

