

'''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


SCREAMING_SNAKE_CASE							:				Any     	=			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    snake_case     (      lowercase_		):






				"""simple docstring"""
				_a    	=     """levit"""



				def __init__(    self,     _lowercase=224,     _lowercase=3,     _lowercase=3,     _lowercase=2,     _lowercase=1,     _lowercase=16,     _lowercase=[128, 256, 384],     _lowercase=[4, 8, 12],     _lowercase=[4, 4, 4],     _lowercase=[16, 16, 16],     _lowercase=0,     _lowercase=[2, 2, 2],     _lowercase=[2, 2, 2],     _lowercase=0.02,     **_lowercase,     )     ->							int:
											super().__init__(**_lowercase       )
											SCREAMING_SNAKE_CASE_				=				image_size
											SCREAMING_SNAKE_CASE_				=				num_channels
											SCREAMING_SNAKE_CASE_				=				kernel_size
											SCREAMING_SNAKE_CASE_				=				stride
											SCREAMING_SNAKE_CASE_				=				padding
											SCREAMING_SNAKE_CASE_				=				hidden_sizes
											SCREAMING_SNAKE_CASE_				=				num_attention_heads
											SCREAMING_SNAKE_CASE_				=				depths
											SCREAMING_SNAKE_CASE_				=				key_dim
											SCREAMING_SNAKE_CASE_				=				drop_path_rate
											SCREAMING_SNAKE_CASE_				=				patch_size
											SCREAMING_SNAKE_CASE_				=				attention_ratio
											SCREAMING_SNAKE_CASE_				=				mlp_ratio
											SCREAMING_SNAKE_CASE_				=				initializer_range
											SCREAMING_SNAKE_CASE_				=				[
											    ['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    snake_case     (      lowercase_		):






				"""simple docstring"""
				_a    	=     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








'''simple docstring'''

def 							_UpperCamelCase				(   lowerCAmelCase__:					int = 1000   )      -> int:
							SCREAMING_SNAKE_CASE_				=				2**power
							SCREAMING_SNAKE_CASE_				=				str(lowerCAmelCase__   )
							SCREAMING_SNAKE_CASE_				=				list(lowerCAmelCase__   )
							SCREAMING_SNAKE_CASE_				=				0

							for i in list_num:
														sum_of_num += int(lowerCAmelCase__   )

							return sum_of_num


if __name__ == "__main__":
							SCREAMING_SNAKE_CASE							:				Tuple     	=			int(input("Enter the power of 2: ").strip())
							print("2 ^ ", power, " = ", 2**power)
							SCREAMING_SNAKE_CASE							:				str     	=			solution(power)
							print("Sum of the digits is: ", result)





