
"""simple docstring"""


from typing import List

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


A_    							=					logging.get_logger(__name__)

A_    							=					{
    """snap-research/efficientformer-l1-300""": (
        """https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json"""
    ),
}




class  __lowerCamelCase  ( lowerCAmelCase			):
				a__:      str          =    'efficientformer'




				def __init__(				self							,						UpperCAmelCase = [3, 2, 6, 4]							,						UpperCAmelCase = [48, 96, 224, 448]							,						UpperCAmelCase = [True, True, True, True]							,						UpperCAmelCase = 448							,						UpperCAmelCase = 32							,						UpperCAmelCase = 4							,						UpperCAmelCase = 7							,						UpperCAmelCase = 5							,						UpperCAmelCase = 8							,						UpperCAmelCase = 4							,						UpperCAmelCase = 0.0							,						UpperCAmelCase = 16							,						UpperCAmelCase = 3							,						UpperCAmelCase = 3							,						UpperCAmelCase = 3							,						UpperCAmelCase = 2							,						UpperCAmelCase = 1							,						UpperCAmelCase = 0.0							,						UpperCAmelCase = 1							,						UpperCAmelCase = True							,						UpperCAmelCase = True							,						UpperCAmelCase = 1e-5							,						UpperCAmelCase = "gelu"							,						UpperCAmelCase = 0.0_2							,						UpperCAmelCase = 1e-1_2							,						UpperCAmelCase = 224							,						UpperCAmelCase = 1e-0_5							,						**UpperCAmelCase							,						):
							super().__init__(**UpperCAmelCase   )

							lowerCamelCase_					=  hidden_act
							lowerCamelCase_					=  hidden_dropout_prob
							lowerCamelCase_					=  hidden_sizes
							lowerCamelCase_					=  num_hidden_layers
							lowerCamelCase_					=  num_attention_heads
							lowerCamelCase_					=  initializer_range
							lowerCamelCase_					=  layer_norm_eps
							lowerCamelCase_					=  patch_size
							lowerCamelCase_					=  num_channels
							lowerCamelCase_					=  depths
							lowerCamelCase_					=  mlp_expansion_ratio
							lowerCamelCase_					=  downsamples
							lowerCamelCase_					=  dim
							lowerCamelCase_					=  key_dim
							lowerCamelCase_					=  attention_ratio
							lowerCamelCase_					=  resolution
							lowerCamelCase_					=  pool_size
							lowerCamelCase_					=  downsample_patch_size
							lowerCamelCase_					=  downsample_stride
							lowerCamelCase_					=  downsample_pad
							lowerCamelCase_					=  drop_path_rate
							lowerCamelCase_					=  num_metaad_blocks
							lowerCamelCase_					=  distillation
							lowerCamelCase_					=  use_layer_scale
							lowerCamelCase_					=  layer_scale_init_value
							lowerCamelCase_					=  image_size
							lowerCamelCase_					=  batch_norm_eps










'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


a__					:			int          =     logging.get_logger(__name__)






class 				__snake_case     (					__magic_name__							):





	def __init__(		self      ,       *UpperCamelCase_      ,       **UpperCamelCase_		)      ->		None:
		warnings.warn(
		    'The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
		    ' Please use PerceiverImageProcessor instead.'      ,       UpperCamelCase_      ,       )
		super().__init__(*UpperCamelCase_      ,       **UpperCamelCase_		)



