



'''simple docstring'''





import warnings
from collections import OrderedDict
from typing import Mapping

from packaging import version

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


SCREAMING_SNAKE_CASE__      					=     logging.get_logger(__name__)

SCREAMING_SNAKE_CASE__      					=     {
    "nvidia/segformer-b0-finetuned-ade-512-512": (
        "https://huggingface.co/nvidia/segformer-b0-finetuned-ade-512-512/resolve/main/config.json"
    ),
    # See all SegFormer models at https://huggingface.co/models?filter=segformer
}


class 				snake_case (UpperCamelCase   ):
							lowerCAmelCase__  :Dict						   =					"segformer"



							def __init__(				self     ,UpperCAmelCase_=3     ,UpperCAmelCase_=4     ,UpperCAmelCase_=[2, 2, 2, 2]     ,UpperCAmelCase_=[8, 4, 2, 1]     ,UpperCAmelCase_=[32, 64, 160, 256]     ,UpperCAmelCase_=[7, 3, 3, 3]     ,UpperCAmelCase_=[4, 2, 2, 2]     ,UpperCAmelCase_=[1, 2, 5, 8]     ,UpperCAmelCase_=[4, 4, 4, 4]     ,UpperCAmelCase_="gelu"     ,UpperCAmelCase_=0.0     ,UpperCAmelCase_=0.0     ,UpperCAmelCase_=0.1     ,UpperCAmelCase_=0.02     ,UpperCAmelCase_=0.1     ,UpperCAmelCase_=1E-6     ,UpperCAmelCase_=256     ,UpperCAmelCase_=255     ,**UpperCAmelCase_     ,)  ->							Any:
											super().__init__(**UpperCAmelCase_      )

											if "reshape_last_stage" in kwargs and kwargs["reshape_last_stage"] is False:
															warnings.warn(
															    "Reshape_last_stage is set to False in this config. This argument is deprecated and will soon be"
															    " removed, as the behaviour will default to that of reshape_last_stage = True."     ,UpperCAmelCase_     ,)

											lowercase__		       =						num_channels
											lowercase__		       =						num_encoder_blocks
											lowercase__		       =						depths
											lowercase__		       =						sr_ratios
											lowercase__		       =						hidden_sizes
											lowercase__		       =						patch_sizes
											lowercase__		       =						strides
											lowercase__		       =						mlp_ratios
											lowercase__		       =						num_attention_heads
											lowercase__		       =						hidden_act
											lowercase__		       =						hidden_dropout_prob
											lowercase__		       =						attention_probs_dropout_prob
											lowercase__		       =						classifier_dropout_prob
											lowercase__		       =						initializer_range
											lowercase__		       =						drop_path_rate
											lowercase__		       =						layer_norm_eps
											lowercase__		       =						decoder_hidden_size
											lowercase__		       =						kwargs.get("reshape_last_stage"     ,UpperCAmelCase_      )
											lowercase__		       =						semantic_loss_ignore_index





class 				snake_case (UpperCamelCase   ):
							lowerCAmelCase__  :Optional[Any]						   =					version.parse("1.11"   )



							@property
							def 							_a      (				self      )  ->							Mapping[str, Mapping[int, str]]:
											return OrderedDict(
											    [
											        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
											    ]      )



							@property
							def 							_a      (				self      )  ->							float:
											return 1E-4







							@property
							def 							_a      (				self      )  ->							int:
											return 12









'''simple docstring'''





print((lambda quine: quine % quine)("print((lambda quine: quine %% quine)(%r))"))




