





'''simple docstring'''



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


_SCREAMING_SNAKE_CASE   =      logging.get_logger(__name__)

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






class 							__lowercase    ( lowerCAmelCase__  ):







	'''simple docstring'''

	a      :			Optional[int]     =    "van"


	def __init__(self       ,_lowerCamelCase=224       ,_lowerCamelCase=3       ,_lowerCamelCase=[7, 3, 3, 3]       ,_lowerCamelCase=[4, 2, 2, 2]       ,_lowerCamelCase=[64, 128, 320, 512]       ,_lowerCamelCase=[3, 3, 12, 3]       ,_lowerCamelCase=[8, 8, 4, 4]       ,_lowerCamelCase="gelu"       ,_lowerCamelCase=0.0_2       ,_lowerCamelCase=1E-6       ,_lowerCamelCase=1E-2       ,_lowerCamelCase=0.0       ,_lowerCamelCase=0.0       ,**_lowerCamelCase       ,)							->							List[str]:







				'''simple docstring'''





				super().__init__(**_lowerCamelCase	)
				__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'''



def 				_lowerCAmelCase  (			lowerCamelCase_     :					int = 6_0_0_8_5_1_4_7_5_1_4_3			):

			try:
						__lowercase			  =							int(lowerCamelCase_			)
			except (TypeError, ValueError):
						raise TypeError('''Parameter n must be int or castable to int.'''			)
			if n <= 0:
						raise ValueError('''Parameter n must be greater than or equal to one.'''			)
			__lowercase			  =							1
			__lowercase			  =							2
			while i * i <= n:
						while n % i == 0:
									__lowercase			  =							i
									n //= i
						i += 1
			if n > 1:
						__lowercase			  =							n
			return int(lowerCamelCase_			)


if __name__ == "__main__":
	print(f'''{solution() = }''')





