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


lowerCamelCase_    :		Tuple	       =	logging.get_logger(__name__)

lowerCamelCase_    :		List[str]	       =	{
    """sayakpaul/vit-msn-base""": """https://huggingface.co/sayakpaul/vit-msn-base/resolve/main/config.json""",
    # See all ViT MSN models at https://huggingface.co/models?filter=vit_msn
}


class 						a__							(       snake_case__		):
			A__    :       Dict        =      """vit_msn"""



			def __init__(						self				,						UpperCAmelCase=7_6_8				,						UpperCAmelCase=1_2				,						UpperCAmelCase=1_2				,						UpperCAmelCase=3_0_7_2				,						UpperCAmelCase="gelu"				,						UpperCAmelCase=0.0				,						UpperCAmelCase=0.0				,						UpperCAmelCase=0.02				,						UpperCAmelCase=1e-06				,						UpperCAmelCase=2_2_4				,						UpperCAmelCase=1_6				,						UpperCAmelCase=3				,						UpperCAmelCase=True				,						**UpperCAmelCase				,						)			->   List[Any]:
								super().__init__(**_A   )

								__a		 =       hidden_size
								__a		 =       num_hidden_layers
								__a		 =       num_attention_heads
								__a		 =       intermediate_size
								__a		 =       hidden_act
								__a		 =       hidden_dropout_prob
								__a		 =       attention_probs_dropout_prob
								__a		 =       initializer_range
								__a		 =       layer_norm_eps
								__a		 =       image_size
								__a		 =       patch_size
								__a		 =       num_channels
								__a		 =       qkv_bias





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_flax_available, is_torch_available


lowerCamelCase_    :		Dict							=	{"""configuration_speech_encoder_decoder""": ["""SpeechEncoderDecoderConfig"""]}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	lowerCamelCase_    :		Optional[Any]							=	["""SpeechEncoderDecoderModel"""]

try:
	if not is_flax_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	lowerCamelCase_    :		Dict							=	["""FlaxSpeechEncoderDecoderModel"""]

if TYPE_CHECKING:
	from .configuration_speech_encoder_decoder import SpeechEncoderDecoderConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_speech_encoder_decoder import SpeechEncoderDecoderModel

	try:
		if not is_flax_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_flax_speech_encoder_decoder import FlaxSpeechEncoderDecoderModel

else:
	import sys

	lowerCamelCase_    :		Optional[int]							=	_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




