






'''simple docstring'''







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


_A			:    List[str]					  =logging.get_logger(__name__)

_A			:    Tuple					  ={
    '''facebook/levit-128S''': '''https://huggingface.co/facebook/levit-128S/resolve/main/config.json''',
    # See all LeViT models at https://huggingface.co/models?filter=levit
}

class _lowercase			(       _lowercase	):

							'''simple docstring'''





							a          = """levit"""




							def __init__(							self:       List[Any]    ,							UpperCamelCase__:       Optional[Any]=224    ,							UpperCamelCase__:       int=3    ,							UpperCamelCase__:       Tuple=3    ,							UpperCamelCase__:       Tuple=2    ,							UpperCamelCase__:       int=1    ,							UpperCamelCase__:       Optional[Any]=16    ,							UpperCamelCase__:       Tuple=[128, 256, 384]    ,							UpperCamelCase__:       Union[str, Any]=[4, 8, 12]    ,							UpperCamelCase__:       str=[4, 4, 4]    ,							UpperCamelCase__:       Tuple=[16, 16, 16]    ,							UpperCamelCase__:       Tuple=0    ,							UpperCamelCase__:       Optional[Any]=[2, 2, 2]    ,							UpperCamelCase__:       Optional[Any]=[2, 2, 2]    ,							UpperCamelCase__:       Tuple=0.02    ,							**UpperCamelCase__:       Optional[int]    ,							):
														super().__init__(**UpperCamelCase__  )
														lowerCamelCase__      :			Tuple 						= image_size
														lowerCamelCase__      :			str 						= num_channels
														lowerCamelCase__      :			Optional[int] 						= kernel_size
														lowerCamelCase__      :			Optional[Any] 						= stride
														lowerCamelCase__      :			Union[str, Any] 						= padding
														lowerCamelCase__      :			List[str] 						= hidden_sizes
														lowerCamelCase__      :			Optional[int] 						= num_attention_heads
														lowerCamelCase__      :			Union[str, Any] 						= depths
														lowerCamelCase__      :			Any 						= key_dim
														lowerCamelCase__      :			Tuple 						= drop_path_rate
														lowerCamelCase__      :			List[Any] 						= patch_size
														lowerCamelCase__      :			Optional[int] 						= attention_ratio
														lowerCamelCase__      :			Optional[int] 						= mlp_ratio
														lowerCamelCase__      :			Tuple 						= initializer_range
														lowerCamelCase__      :			Tuple 						= [
														    ["""Subsample""", key_dim[0], hidden_sizes[0] // key_dim[0], 4, 2, 2],
														    ["""Subsample""", key_dim[0], hidden_sizes[1] // key_dim[0], 4, 2, 2],
														]



class _lowercase			(       _lowercase	):

							'''simple docstring'''





							a          = version.parse("""1.11"""	)




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




							@property
							def 	lowerCamelCase_       (							self:       int  ):
														return 1e-4









'''simple docstring'''







import sys
import turtle





def 				SCREAMING_SNAKE_CASE_ (UpperCamelCase       ,    UpperCamelCase   )   -> tuple[float, float]:
							return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2





def 				SCREAMING_SNAKE_CASE_ (UpperCamelCase       ,    UpperCamelCase       ,    UpperCamelCase       ,    UpperCamelCase       ,    )   -> None:
							my_pen.up()
							my_pen.goto(vertexa[0]       ,    vertexa[1]   )
							my_pen.down()
							my_pen.goto(vertexa[0]       ,    vertexa[1]   )
							my_pen.goto(vertexa[0]       ,    vertexa[1]   )
							my_pen.goto(vertexa[0]       ,    vertexa[1]   )

							if depth == 0:
														return

							triangle(UpperCamelCase       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    depth - 1   )
							triangle(UpperCamelCase       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    depth - 1   )
							triangle(UpperCamelCase       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    get_mid(UpperCamelCase       ,    UpperCamelCase   )       ,    depth - 1   )


if __name__ == "__main__":
			if len(sys.argv) != 2:
						raise ValueError(
						    '''Correct format for using this script: '''
						    '''python fractals.py <int:depth_for_fractal>'''
						)
			_A			:    Any					  =turtle.Turtle()
			my_pen.ht()
			my_pen.speed(5)
			my_pen.pencolor('''red''')

			_A			:    Dict					  =[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
			triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))

