

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


lowerCAmelCase__		      =       logging.get_logger(__name__)

lowerCAmelCase__		      =       {
    """facebook/s2t-wav2vec2-large-en-de""": (
        """https://huggingface.co/facebook/s2t-wav2vec2-large-en-de/resolve/main/config.json"""
    ),
    # See all Speech2Text models at https://huggingface.co/models?filter=speech2text2
}

class     a__  (    snake_case	):
			"""simple docstring"""







			__lowerCamelCase       				=				'speech_to_text_2'
			__lowerCamelCase       				=				['past_key_values']
			__lowerCamelCase       				=				{'num_attention_heads': 'decoder_attention_heads', 'hidden_size': 'd_model'}


			def __init__(			self					,					lowercase=10000					,					lowercase=6					,					lowercase=2048					,					lowercase=4					,					lowercase=0.0					,					lowercase=True					,					lowercase="relu"					,					lowercase=256					,					lowercase=0.1					,					lowercase=0.0					,					lowercase=0.0					,					lowercase=0.02					,					lowercase=2					,					lowercase=True					,					lowercase=1					,					lowercase=0					,					lowercase=2					,					lowercase=1024					,					**lowercase					,					)     ->  Optional[int]:
							'''simple docstring'''






							A__						=	vocab_size
							A__						=	d_model
							A__						=	decoder_ffn_dim
							A__						=	decoder_layers
							A__						=	decoder_attention_heads
							A__						=	dropout
							A__						=	attention_dropout
							A__						=	activation_dropout
							A__						=	activation_function
							A__						=	init_std
							A__						=	decoder_layerdrop
							A__						=	use_cache
							A__						=	decoder_layers
							A__						=	scale_embedding  # scale factor will be sqrt(d_model) if True
							A__						=	max_target_positions

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



import math






def    lowerCamelCase__				(				__lowerCAmelCase  :  int				):




			"""simple docstring"""


			lowerCAmelCase_						=	0
			lowerCAmelCase_						=	0
			while num > 0:
						lowerCAmelCase_						=	num % 8
						lowerCAmelCase_						=	octal + (remainder * math.floor(math.pow(10    ,							__lowerCAmelCase				)				))
						counter += 1
						lowerCAmelCase_						=	math.floor(num / 8				)  # basically /= 8 without remainder if any
						# This formatting removes trailing '.0' from `octal`.
			return F"""0o{int(__lowerCAmelCase				)}"""






def    lowerCamelCase__				(				):




			"""simple docstring"""


			print("\n2 in octal is:"				)
			print(decimal_to_octal(2				)				)  # = 2
			print("\n8 in octal is:"				)
			print(decimal_to_octal(8				)				)  # = 10
			print("\n65 in octal is:"				)
			print(decimal_to_octal(65				)				)  # = 101
			print("\n216 in octal is:"				)
			print(decimal_to_octal(216				)				)  # = 330
			print("\n512 in octal is:"				)
			print(decimal_to_octal(512				)				)  # = 1000
			print("\n"				)


if __name__ == "__main__":
			main()



