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


__a  			=					logging.get_logger(__name__)

__a  			=					{
    'Visual-Attention-Network/van-base': (
        'https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'
    ),
}
class  lowercase__(				UpperCAmelCase							):



	"""simple docstring"""




	a			:str         =	'van'
	def __init__(       self  :			int       ,							SCREAMING_SNAKE_CASE_  :			int=2_2_4       ,							SCREAMING_SNAKE_CASE_  :			Optional[Any]=3       ,							SCREAMING_SNAKE_CASE_  :			List[str]=[7, 3, 3, 3]       ,							SCREAMING_SNAKE_CASE_  :			Optional[Any]=[4, 2, 2, 2]       ,							SCREAMING_SNAKE_CASE_  :			List[Any]=[6_4, 1_2_8, 3_2_0, 5_1_2]       ,							SCREAMING_SNAKE_CASE_  :			Union[str, Any]=[3, 3, 1_2, 3]       ,							SCREAMING_SNAKE_CASE_  :			Union[str, Any]=[8, 8, 4, 4]       ,							SCREAMING_SNAKE_CASE_  :			Dict="gelu"       ,							SCREAMING_SNAKE_CASE_  :			Optional[int]=0.02       ,							SCREAMING_SNAKE_CASE_  :			Optional[int]=1e-6       ,							SCREAMING_SNAKE_CASE_  :			Any=1e-2       ,							SCREAMING_SNAKE_CASE_  :			Tuple=0.0       ,							SCREAMING_SNAKE_CASE_  :			Tuple=0.0       ,							**SCREAMING_SNAKE_CASE_  :			int       ,							)       ->     Union[str, Any]:
					super().__init__(**SCREAMING_SNAKE_CASE_       )
					lowercase_       =					image_size
					lowercase_       =					num_channels
					lowercase_       =					patch_sizes
					lowercase_       =					strides
					lowercase_       =					hidden_sizes
					lowercase_       =					depths
					lowercase_       =					mlp_ratios
					lowercase_       =					hidden_act
					lowercase_       =					initializer_range
					lowercase_       =					layer_norm_eps
					lowercase_       =					layer_scale_init_value
					lowercase_       =					drop_path_rate
					lowercase_       =					dropout_rate









"""simple docstring"""






from typing import TYPE_CHECKING

from ..utils import _LazyModule


__snake_case							:   Optional[int]      =    {
    'config': [
        'EXTERNAL_DATA_FORMAT_SIZE_LIMIT',
        'OnnxConfig',
        'OnnxConfigWithPast',
        'OnnxSeq2SeqConfigWithPast',
        'PatchingSpec',
    ],
    'convert': ['export', 'validate_model_outputs'],
    'features': ['FeaturesManager'],
    'utils': ['ParameterFormat', 'compute_serialized_parameters_size'],
}


if TYPE_CHECKING:
	from .config import (
	    EXTERNAL_DATA_FORMAT_SIZE_LIMIT,
	    OnnxConfig,
	    OnnxConfigWithPast,
	    OnnxSeqaSeqConfigWithPast,
	    PatchingSpec,
	)
	from .convert import export, validate_model_outputs
	from .features import FeaturesManager
	from .utils import ParameterFormat, compute_serialized_parameters_size

else:
	import sys

	__snake_case							:   Any      =    _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)