
from typing import List

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


UpperCamelCase_   	=	logging.get_logger(__name__)

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

class       a		(   __UpperCAmelCase					):
       lowercase_		:						List[str]   							=  'efficientformer'







       def __init__(						self  :  str      ,				snake_case__  :  List[int] = [3, 2, 6, 4]      ,				snake_case__  :  List[int] = [48, 96, 224, 448]      ,				snake_case__  :  List[bool] = [True, True, True, True]      ,				snake_case__  :  int = 448      ,				snake_case__  :  int = 32      ,				snake_case__  :  int = 4      ,				snake_case__  :  int = 7      ,				snake_case__  :  int = 5      ,				snake_case__  :  int = 8      ,				snake_case__  :  int = 4      ,				snake_case__  :  float = 0.0      ,				snake_case__  :  int = 16      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 3      ,				snake_case__  :  int = 2      ,				snake_case__  :  int = 1      ,				snake_case__  :  float = 0.0      ,				snake_case__  :  int = 1      ,				snake_case__  :  bool = True      ,				snake_case__  :  bool = True      ,				snake_case__  :  float = 1E-5      ,				snake_case__  :  str = "gelu"      ,				snake_case__  :  float = 0.0_2      ,				snake_case__  :  float = 1E-12      ,				snake_case__  :  int = 224      ,				snake_case__  :  float = 1E-05      ,				**snake_case__  :  int      ,				):
        """simple docstring"""







        super().__init__(**snake_case__ )

        __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








# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    "pipelines_utils",
    "0.22.0",
    "Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.",
    standard_warn=False,
    stacklevel=3,
)






