



"""simple docstring"""







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


UpperCAmelCase:  Optional[int]			     =				logging.get_logger(__name__)

UpperCAmelCase:  Optional[int]			     =				{
    """facebook/regnet-y-040""": """https://huggingface.co/facebook/regnet-y-040/blob/main/config.json""",
}





class   UpperCamelCase	(     snake_case       ):




	"""simple docstring"""
	SCREAMING_SNAKE_CASE_							:       int						       =  "regnet"
	SCREAMING_SNAKE_CASE_							:       Tuple						       =  ["x", "y"]






	def __init__(     self				,UpperCAmelCase_=3				,UpperCAmelCase_=32				,UpperCAmelCase_=[1_28, 1_92, 5_12, 10_88]				,UpperCAmelCase_=[2, 6, 12, 2]				,UpperCAmelCase_=64				,UpperCAmelCase_="y"				,UpperCAmelCase_="relu"				,**UpperCAmelCase_				,):
			super().__init__(**UpperCAmelCase_   )
			if layer_type not in self.layer_types:
					raise ValueError(f"""layer_type={layer_type} is not one of {",".join(self.layer_types   )}"""   )
			_lowercase				: Dict     =   num_channels
			_lowercase				: int     =   embedding_size
			_lowercase				: Union[str, Any]     =   hidden_sizes
			_lowercase				: Optional[Any]     =   depths
			_lowercase				: Optional[Any]     =   groups_width
			_lowercase				: List[Any]     =   layer_type
			_lowercase				: Tuple     =   hidden_act
			# always downsample in the first stage
			_lowercase				: Union[str, Any]     =   True








"""simple docstring"""







from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCAmelCase:  Union[str, Any]			     =				{"""tokenization_phobert""": ["""PhobertTokenizer"""]}


if TYPE_CHECKING:
		from .tokenization_phobert import PhobertTokenizer

else:
		import sys

		UpperCAmelCase:  Optional[int]			     =				_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



