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


UpperCAmelCase__   :					Optional[Any]												=				logging.get_logger(__name__)

UpperCAmelCase__   :					Optional[Any]												=				{
    'google/mobilenet_v1_1.0_224': 'https://huggingface.co/google/mobilenet_v1_1.0_224/resolve/main/config.json',
    'google/mobilenet_v1_0.75_192': 'https://huggingface.co/google/mobilenet_v1_0.75_192/resolve/main/config.json',
    # See all MobileNetV1 models at https://huggingface.co/models?filter=mobilenet_v1
}



class 			lowerCAmelCase_		(a__						):


				"""simple docstring"""



				__UpperCamelCase   :		Union[str, Any]       =     '''mobilenet_v1'''



				def __init__(self     , SCREAMING_SNAKE_CASE__=3     , SCREAMING_SNAKE_CASE__=2_24     , SCREAMING_SNAKE_CASE__=1.0     , SCREAMING_SNAKE_CASE__=8     , SCREAMING_SNAKE_CASE__="relu6"     , SCREAMING_SNAKE_CASE__=True     , SCREAMING_SNAKE_CASE__=0.999     , SCREAMING_SNAKE_CASE__=0.02     , SCREAMING_SNAKE_CASE__=0.001     , **SCREAMING_SNAKE_CASE__     , )      ->	Tuple:



											"""simple docstring"""




											super().__init__(**SCREAMING_SNAKE_CASE__					)

											if depth_multiplier <= 0:
																		raise ValueError("""depth_multiplier must be greater than zero."""					)

											SCREAMING_SNAKE_CASE__		: Optional[int]     =     num_channels
											SCREAMING_SNAKE_CASE__		: int     =     image_size
											SCREAMING_SNAKE_CASE__		: int     =     depth_multiplier
											SCREAMING_SNAKE_CASE__		: Dict     =     min_depth
											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     hidden_act
											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     tf_padding
											SCREAMING_SNAKE_CASE__		: int     =     classifier_dropout_prob
											SCREAMING_SNAKE_CASE__		: int     =     initializer_range
											SCREAMING_SNAKE_CASE__		: str     =     layer_norm_eps






class 			lowerCAmelCase_		(a__						):


				"""simple docstring"""



				__UpperCamelCase   :		Optional[Any]       =     version.parse('''1.11'''						)



				@property
				def 			__magic_name__					(self					)      ->	Mapping[str, Mapping[int, str]]:



											"""simple docstring"""




											return OrderedDict([("""pixel_values""", {0: """batch"""})]					)



				@property
				def 			__magic_name__					(self					)      ->	Mapping[str, Mapping[int, str]]:



											"""simple docstring"""




											if self.task == "image-classification":
																		return OrderedDict([("""logits""", {0: """batch"""})]					)
											else:
																		return OrderedDict([("""last_hidden_state""", {0: """batch"""}), ("""pooler_output""", {0: """batch"""})]					)



				@property
				def 			__magic_name__					(self					)      ->	float:



											"""simple docstring"""




											return 1E-4






"""simple docstring"""




import logging

from transformers import PretrainedConfig


UpperCAmelCase__   :					Union[str, Any]												=				logging.getLogger(__name__)


UpperCAmelCase__   :					Any												=				{
    'bertabs-finetuned-cnndm': 'https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json',
}



class 			lowerCAmelCase_		(a__						):


				"""simple docstring"""



				__UpperCamelCase   :		List[Any]       =     '''bertabs'''



				def __init__(self     , SCREAMING_SNAKE_CASE__=3_05_22     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=6     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=8     , SCREAMING_SNAKE_CASE__=5_12     , SCREAMING_SNAKE_CASE__=0.2     , SCREAMING_SNAKE_CASE__=6     , SCREAMING_SNAKE_CASE__=7_68     , SCREAMING_SNAKE_CASE__=8     , SCREAMING_SNAKE_CASE__=20_48     , SCREAMING_SNAKE_CASE__=0.2     , **SCREAMING_SNAKE_CASE__     , )      ->	Union[str, Any]:



											"""simple docstring"""




											super().__init__(**SCREAMING_SNAKE_CASE__					)

											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     vocab_size
											SCREAMING_SNAKE_CASE__		: Any     =     max_pos

											SCREAMING_SNAKE_CASE__		: List[Any]     =     enc_layers
											SCREAMING_SNAKE_CASE__		: Tuple     =     enc_hidden_size
											SCREAMING_SNAKE_CASE__		: Dict     =     enc_heads
											SCREAMING_SNAKE_CASE__		: Optional[Any]     =     enc_ff_size
											SCREAMING_SNAKE_CASE__		: Dict     =     enc_dropout

											SCREAMING_SNAKE_CASE__		: Any     =     dec_layers
											SCREAMING_SNAKE_CASE__		: Union[str, Any]     =     dec_hidden_size
											SCREAMING_SNAKE_CASE__		: Any     =     dec_heads
											SCREAMING_SNAKE_CASE__		: List[Any]     =     dec_ff_size
											SCREAMING_SNAKE_CASE__		: str     =     dec_dropout




