
from collections import OrderedDict
from typing import Mapping

from packaging import version

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


lowerCamelCase_  :	List[str] 				=					logging.get_logger(__name__)

lowerCamelCase_  :	Dict 				=					{
    """sail/poolformer_s12""": """https://huggingface.co/sail/poolformer_s12/resolve/main/config.json""",
    # See all PoolFormer models at https://huggingface.co/models?filter=poolformer
}

class     _UpperCamelCase			(   _A					):






			'''simple docstring'''

			__UpperCamelCase :  Dict    =	"""poolformer"""

			def __init__(    self	:    List[Any]  ,		snake_case_	:    str=3  ,		snake_case_	:    List[str]=16  ,		snake_case_	:    int=16  ,		snake_case_	:    Optional[Any]=3  ,		snake_case_	:    Tuple=4.0  ,		snake_case_	:    Any=[2, 2, 6, 2]  ,		snake_case_	:    Union[str, Any]=[64, 128, 320, 512]  ,		snake_case_	:    Tuple=[7, 3, 3, 3]  ,		snake_case_	:    List[Any]=[4, 2, 2, 2]  ,		snake_case_	:    str=[2, 1, 1, 1]  ,		snake_case_	:    Dict=4  ,		snake_case_	:    Union[str, Any]=0.0  ,		snake_case_	:    Union[str, Any]="gelu"  ,		snake_case_	:    int=True  ,		snake_case_	:    str=1e-5  ,		snake_case_	:    Dict=0.02  ,		**snake_case_	:    List[str]  ,		):
							UpperCamelCase_:							int		=  num_channels
							UpperCamelCase_:							int		=  patch_size
							UpperCamelCase_:							Optional[int]		=  stride
							UpperCamelCase_:							Optional[Any]		=  padding
							UpperCamelCase_:							List[str]		=  pool_size
							UpperCamelCase_:							Tuple		=  hidden_sizes
							UpperCamelCase_:							Any		=  mlp_ratio
							UpperCamelCase_:							List[Any]		=  depths
							UpperCamelCase_:							List[Any]		=  patch_sizes
							UpperCamelCase_:							Tuple		=  strides
							UpperCamelCase_:							Optional[int]		=  num_encoder_blocks
							UpperCamelCase_:							Tuple		=  drop_path_rate
							UpperCamelCase_:							Any		=  hidden_act
							UpperCamelCase_:							Dict		=  use_layer_scale
							UpperCamelCase_:							Optional[Any]		=  layer_scale_init_value
							UpperCamelCase_:							int		=  initializer_range
							super().__init__(**snake_case_ )




class     _UpperCamelCase			(   _A					):






			'''simple docstring'''

			__UpperCamelCase :  Optional[Any]    =	version.parse("""1.11"""					)

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




			@property
			def  lowerCAmelCase__		(    self	:    Union[str, Any] ):
							return 2e-3








from typing import TYPE_CHECKING

from ...utils import _LazyModule


lowerCamelCase_  :	Dict 				=					{"""tokenization_byt5""": ["""ByT5Tokenizer"""]}


if TYPE_CHECKING:
							from .tokenization_byta import ByTaTokenizer
else:
							import sys

							lowerCamelCase_  :	Any 				=					_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






