


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


_snake_case	:						int         =							logging.get_logger(__name__)

_snake_case	:						str         =							{
    "Visual-Attention-Network/van-base": (
        "https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"
    ),
}

class 							a						(_lowerCAmelCase ):




							"""simple docstring"""


							__UpperCAmelCase       :				List[Any]	    =    "van"

							def __init__(				self			:    Optional[int]       ,      lowerCamelCase			:    Any=224       ,      lowerCamelCase			:    str=3       ,      lowerCamelCase			:    Any=[7, 3, 3, 3]       ,      lowerCamelCase			:    Dict=[4, 2, 2, 2]       ,      lowerCamelCase			:    List[Any]=[64, 128, 320, 512]       ,      lowerCamelCase			:    str=[3, 3, 12, 3]       ,      lowerCamelCase			:    Dict=[8, 8, 4, 4]       ,      lowerCamelCase			:    Any="gelu"       ,      lowerCamelCase			:    Optional[int]=0.02       ,      lowerCamelCase			:    Tuple=1E-6       ,      lowerCamelCase			:    Optional[int]=1E-2       ,      lowerCamelCase			:    int=0.0       ,      lowerCamelCase			:    Optional[Any]=0.0       ,      **lowerCamelCase			:    Optional[int]       ,      )      ->       int:
														super().__init__(**lowerCamelCase							)
														__snake_case						:     Union[str, Any]									=  image_size
														__snake_case						:     Any									=  num_channels
														__snake_case						:     Any									=  patch_sizes
														__snake_case						:     List[Any]									=  strides
														__snake_case						:     str									=  hidden_sizes
														__snake_case						:     Dict									=  depths
														__snake_case						:     Optional[int]									=  mlp_ratios
														__snake_case						:     Dict									=  hidden_act
														__snake_case						:     Union[str, Any]									=  initializer_range
														__snake_case						:     List[str]									=  layer_norm_eps
														__snake_case						:     Optional[int]									=  layer_scale_init_value
														__snake_case						:     List[Any]									=  drop_path_rate
														__snake_case						:     int									=  dropout_rate









from typing import TYPE_CHECKING

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


UpperCAmelCase__      			=						{
    '''configuration_poolformer''': [
        '''POOLFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''PoolFormerConfig''',
        '''PoolFormerOnnxConfig''',
    ]
}

try:
			if not is_vision_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			UpperCAmelCase__      			=						['''PoolFormerFeatureExtractor''']
			UpperCAmelCase__      			=						['''PoolFormerImageProcessor''']

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			UpperCAmelCase__      			=						[
			    '''POOLFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''PoolFormerForImageClassification''',
			    '''PoolFormerModel''',
			    '''PoolFormerPreTrainedModel''',
			]


if TYPE_CHECKING:
			from .configuration_poolformer import (
			    POOLFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
			    PoolFormerConfig,
			    PoolFormerOnnxConfig,
			)

			try:
						if not is_vision_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .feature_extraction_poolformer import PoolFormerFeatureExtractor
						from .image_processing_poolformer import PoolFormerImageProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_poolformer import (
						    POOLFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
						    PoolFormerForImageClassification,
						    PoolFormerModel,
						    PoolFormerPreTrainedModel,
						)


else:
			import sys

			UpperCAmelCase__      			=						_LazyModule(__name__, globals()['''__file__'''], _import_structure)





