
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__   :			str												=    logging.get_logger(__name__)

SCREAMING_SNAKE_CASE__   :			Optional[Any]												=    {
    "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    lowerCAmelCase__     (	__lowercase			):
		a__       :						List[Any]        =		"""levit"""






		def __init__(		self		:							Optional[int]							,			SCREAMING_SNAKE_CASE__		:							Union[str, Any]=2_24							,			SCREAMING_SNAKE_CASE__		:							Union[str, Any]=3							,			SCREAMING_SNAKE_CASE__		:							List[Any]=3							,			SCREAMING_SNAKE_CASE__		:							Optional[int]=2							,			SCREAMING_SNAKE_CASE__		:							Optional[int]=1							,			SCREAMING_SNAKE_CASE__		:							str=16							,			SCREAMING_SNAKE_CASE__		:							Optional[Any]=[1_28, 2_56, 3_84]							,			SCREAMING_SNAKE_CASE__		:							Union[str, Any]=[4, 8, 12]							,			SCREAMING_SNAKE_CASE__		:							Tuple=[4, 4, 4]							,			SCREAMING_SNAKE_CASE__		:							Optional[int]=[16, 16, 16]							,			SCREAMING_SNAKE_CASE__		:							Optional[int]=0							,			SCREAMING_SNAKE_CASE__		:							Optional[Any]=[2, 2, 2]							,			SCREAMING_SNAKE_CASE__		:							Union[str, Any]=[2, 2, 2]							,			SCREAMING_SNAKE_CASE__		:							int=0.02							,			**SCREAMING_SNAKE_CASE__		:							str							,			)     ->							str:
						super().__init__(**SCREAMING_SNAKE_CASE__  )
						__lowerCamelCase    					=	image_size
						__lowerCamelCase    					=	num_channels
						__lowerCamelCase    					=	kernel_size
						__lowerCamelCase    					=	stride
						__lowerCamelCase    					=	padding
						__lowerCamelCase    					=	hidden_sizes
						__lowerCamelCase    					=	num_attention_heads
						__lowerCamelCase    					=	depths
						__lowerCamelCase    					=	key_dim
						__lowerCamelCase    					=	drop_path_rate
						__lowerCamelCase    					=	patch_size
						__lowerCamelCase    					=	attention_ratio
						__lowerCamelCase    					=	mlp_ratio
						__lowerCamelCase    					=	initializer_range
						__lowerCamelCase    					=	[
						    ['''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    lowerCAmelCase__     (	__lowercase			):
		a__       :						str        =		version.parse("""1.11"""			)






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







		@property
		def  __A       (		self		:							str  )     ->							float:
						return 1e-4





from __future__ import annotations

from fractions import Fraction




def  __magic_name__ (   __lowerCAmelCase	:						int		,  __lowerCAmelCase	:						int							)			->   bool:
				return (
				    num != den and num % 10 == den // 10 and (num // 10) / (den % 10) == num / den
				)




def  __magic_name__ (   __lowerCAmelCase	:						int							)			->   list[str]:
				__lowerCamelCase    					=	[]
				__lowerCamelCase    					=	11
				__lowerCamelCase    					=	int('''1''' + '''0''' * digit_len							)
				for num in range(__lowerCAmelCase		,  __lowerCAmelCase							):
								while den <= 99:
												if (num != den) and (num % 10 == den // 10) and (den % 10 != 0):
																if is_digit_cancelling(__lowerCAmelCase		,  __lowerCAmelCase							):
																				solutions.append(f'''{num}/{den}'''							)
												den += 1
								num += 1
								__lowerCamelCase    					=	10
				return solutions




def  __magic_name__ (   __lowerCAmelCase	:						int = 2							)			->   int:
				__lowerCamelCase    					=	1.0
				for fraction in fraction_list(__lowerCAmelCase							):
								__lowerCamelCase    					=	Fraction(__lowerCAmelCase							)
								result *= frac.denominator / frac.numerator
				return int(__lowerCAmelCase							)


if __name__ == "__main__":
					print(solution())



