'''simple docstring'''




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


_UpperCamelCase				:		Tuple       			=		logging.get_logger(__name__)

_UpperCamelCase				:		int       			=		{
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}

class   _lowercase(     _lowerCamelCase				):



   """simple docstring"""





   __lowerCamelCase    =  '''regnet'''
   __lowerCamelCase    =  ['''x''', '''y''']





   def __init__(							self:    Dict			,a:    Union[str, Any]=3			,a:    List[Any]=32			,a:    str=[128, 192, 512, 1088]			,a:    List[str]=[2, 6, 12, 2]			,a:    Optional[Any]=64			,a:    Union[str, Any]="y"			,a:    Any="relu"			,**a:    Tuple			,):
    super().__init__(**a	)
    if layer_type not in self.layer_types:
     raise ValueError(f"""layer_type={layer_type} is not one of {','.join(self.layer_types	)}"""	)
    __UpperCAmelCase         =					num_channels
    __UpperCAmelCase         =					embedding_size
    __UpperCAmelCase         =					hidden_sizes
    __UpperCAmelCase         =					depths
    __UpperCAmelCase         =					groups_width
    __UpperCAmelCase         =					layer_type
    __UpperCAmelCase         =					hidden_act
    # always downsample in the first stage
    __UpperCAmelCase         =					True




'''simple docstring'''




from typing import TYPE_CHECKING

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


_UpperCamelCase				:		int       			=		{
    'configuration_align': [
        'ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'AlignConfig',
        'AlignTextConfig',
        'AlignVisionConfig',
    ],
    'processing_align': ['AlignProcessor'],
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     _UpperCamelCase				:		Optional[Any]       			=		[
         'ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST',
         'AlignModel',
         'AlignPreTrainedModel',
         'AlignTextModel',
         'AlignVisionModel',
     ]

if TYPE_CHECKING:
     from .configuration_align import (
         ALIGN_PRETRAINED_CONFIG_ARCHIVE_MAP,
         AlignConfig,
         AlignTextConfig,
         AlignVisionConfig,
     )
     from .processing_align import AlignProcessor

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_align import (
              ALIGN_PRETRAINED_MODEL_ARCHIVE_LIST,
              AlignModel,
              AlignPreTrainedModel,
              AlignTextModel,
              AlignVisionModel,
          )

else:
     import sys

     _UpperCamelCase				:		str       			=		_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



