


from ...configuration_utils import PretrainedConfig
from ...utils import logging


snake_case							: Union[str, Any]      =   logging.get_logger(__name__)

snake_case							: List[Any]      =   {
    '''microsoft/trocr-base-handwritten''': (
        '''https://huggingface.co/microsoft/trocr-base-handwritten/resolve/main/config.json'''
    ),
    # See all TrOCR models at https://huggingface.co/models?filter=trocr
}







class  snake_case_     (lowerCamelCase_   ):
					UpperCAmelCase__      :					str					   =    '''trocr'''
					UpperCAmelCase__      :					List[Any]					   =    ['''past_key_values''']
					UpperCAmelCase__      :					Optional[Any]					   =    {
					    '''num_attention_heads''': '''decoder_attention_heads''',
					    '''hidden_size''': '''d_model''',
					    '''num_hidden_layers''': '''decoder_layers''',
					}
					def __init__(   self     :Any    ,__snake_case     :int=5_02_65    ,__snake_case     :Dict=10_24    ,__snake_case     :List[str]=12    ,__snake_case     :List[Any]=16    ,__snake_case     :Optional[int]=40_96    ,__snake_case     :Union[str, Any]="gelu"    ,__snake_case     :Optional[int]=5_12    ,__snake_case     :Tuple=0.1    ,__snake_case     :Any=0.0    ,__snake_case     :str=0.0    ,__snake_case     :Optional[Any]=2    ,__snake_case     :Union[str, Any]=0.02    ,__snake_case     :List[str]=0.0    ,__snake_case     :Union[str, Any]=True    ,__snake_case     :List[Any]=False    ,__snake_case     :Dict=True    ,__snake_case     :List[Any]=True    ,__snake_case     :Union[str, Any]=1    ,__snake_case     :List[str]=0    ,__snake_case     :List[Any]=2    ,**__snake_case     :List[Any]    ,)      ->					Optional[Any]:
												a__    =  vocab_size
												a__    =  d_model
												a__    =  decoder_layers
												a__    =  decoder_attention_heads
												a__    =  decoder_ffn_dim
												a__    =  activation_function
												a__    =  max_position_embeddings
												a__    =  dropout
												a__    =  attention_dropout
												a__    =  activation_dropout
												a__    =  init_std
												a__    =  decoder_layerdrop
												a__    =  use_cache
												a__    =  scale_embedding
												a__    =  use_learned_position_embeddings
												a__    =  layernorm_embedding

												super().__init__(
												    pad_token_id=__snake_case    ,bos_token_id=__snake_case    ,eos_token_id=__snake_case    ,decoder_start_token_id=__snake_case    ,**__snake_case    ,)








from math import pi






def 							__lowercase     (				__lowerCAmelCase							:       int      ,					__lowerCAmelCase							:       int     ):
							return 2 * pi * radius * (angle / 3_6_0)


if __name__ == "__main__":
						print(arc_length(90, 10))




