






"""simple docstring"""



from collections import OrderedDict
from typing import List, Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


A__	:    int			 = logging.get_logger(__name__)

A__	:    Dict			 = {
    'google/efficientnet-b7': 'https://huggingface.co/google/efficientnet-b7/resolve/main/config.json',
}







class        lowercase__      (							snake_case__       ):
			_UpperCAmelCase		:Optional[int]             =			"efficientnet"


			def __init__(				self					:  Optional[Any]       ,	snake_case__					:  int = 3       ,	snake_case__					:  int = 600       ,	snake_case__					:  float = 2.0       ,	snake_case__					:  float = 3.1       ,	snake_case__					:  int = 8       ,	snake_case__					:  List[int] = [3, 3, 5, 3, 5, 5, 3]       ,	snake_case__					:  List[int] = [32, 16, 24, 40, 80, 112, 192]       ,	snake_case__					:  List[int] = [16, 24, 40, 80, 112, 192, 320]       ,	snake_case__					:  List[int] = []       ,	snake_case__					:  List[int] = [1, 2, 2, 2, 1, 2, 1]       ,	snake_case__					:  List[int] = [1, 2, 2, 3, 3, 4, 1]       ,	snake_case__					:  List[int] = [1, 6, 6, 6, 6, 6, 6]       ,	snake_case__					:  float = 0.25       ,	snake_case__					:  str = "swish"       ,	snake_case__					:  int = 2560       ,	snake_case__					:  str = "mean"       ,	snake_case__					:  float = 0.02       ,	snake_case__					:  float = 0.001       ,	snake_case__					:  float = 0.99       ,	snake_case__					:  float = 0.5       ,	snake_case__					:  float = 0.2       ,	**snake_case__					:  str       ,	):
										super().__init__(**snake_case__ )

										lowerCamelCase_	:							str									=num_channels
										lowerCamelCase_	:							Optional[Any]									=image_size
										lowerCamelCase_	:							List[str]									=width_coefficient
										lowerCamelCase_	:							List[str]									=depth_coefficient
										lowerCamelCase_	:							List[str]									=depth_divisor
										lowerCamelCase_	:							Any									=kernel_sizes
										lowerCamelCase_	:							Union[str, Any]									=in_channels
										lowerCamelCase_	:							Any									=out_channels
										lowerCamelCase_	:							Tuple									=depthwise_padding
										lowerCamelCase_	:							Any									=strides
										lowerCamelCase_	:							str									=num_block_repeats
										lowerCamelCase_	:							str									=expand_ratios
										lowerCamelCase_	:							str									=squeeze_expansion_ratio
										lowerCamelCase_	:							Tuple									=hidden_act
										lowerCamelCase_	:							str									=hidden_dim
										lowerCamelCase_	:							Optional[int]									=pooling_type
										lowerCamelCase_	:							Tuple									=initializer_range
										lowerCamelCase_	:							str									=batch_norm_eps
										lowerCamelCase_	:							List[str]									=batch_norm_momentum
										lowerCamelCase_	:							Tuple									=dropout_rate
										lowerCamelCase_	:							str									=drop_connect_rate
										lowerCamelCase_	:							List[str]									=sum(snake_case__ ) * 4







class        lowercase__      (							snake_case__       ):
			_UpperCAmelCase		:List[Any]             =			version.parse("1.11"       )


			@property
			def      UpperCAmelCase__						(				self					:  Optional[Any] ):
										return OrderedDict(
										    [
										        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
										    ] )


			@property
			def      UpperCAmelCase__						(				self					:  Optional[Any] ):
										return 1E-5











"""simple docstring"""



import warnings

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


A__	:    str			 = logging.get_logger(__name__)







class        lowercase__      (							snake_case__       ):


			def __init__(				self					:  Optional[Any]       ,	*snake_case__					:  int       ,	**snake_case__					:  Any ):
										warnings.warn(
										    "The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
										    " Please use PerceiverImageProcessor instead."       ,	snake_case__       ,	)
										super().__init__(*snake_case__       ,	**snake_case__ )



