




"""simple docstring"""




from ..utils import DummyObject, requires_backends

class   UpperCAmelCase_    (			metaclass=snake_case		):
		UpperCamelCase							=["note_seq"]
		def __init__(						self				,						*UpperCamelCase_				,						**UpperCamelCase_       )						->       str:
					requires_backends(self				,						['''note_seq''']       )
		@classmethod
		def 	_lowerCamelCase							(						cls				,						*UpperCamelCase_				,						**UpperCamelCase_       )						->       Tuple:
					requires_backends(cls				,						['''note_seq''']       )
		@classmethod
		def 	_lowerCamelCase							(						cls				,						*UpperCamelCase_				,						**UpperCamelCase_       )						->       Tuple:
					requires_backends(cls				,						['''note_seq''']       )







"""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__				:Union[str, Any]			   =	logging.get_logger(__name__)

UpperCamelCase__				:Union[str, Any]			   =	{
    """google/mobilenet_v2_1.4_224""": """https://huggingface.co/google/mobilenet_v2_1.4_224/resolve/main/config.json""",
    """google/mobilenet_v2_1.0_224""": """https://huggingface.co/google/mobilenet_v2_1.0_224/resolve/main/config.json""",
    """google/mobilenet_v2_0.75_160""": """https://huggingface.co/google/mobilenet_v2_0.75_160/resolve/main/config.json""",
    """google/mobilenet_v2_0.35_96""": """https://huggingface.co/google/mobilenet_v2_0.35_96/resolve/main/config.json""",
    # See all MobileNetV2 models at https://huggingface.co/models?filter=mobilenet_v2
}






class      A(  lowerCamelCase__		):

		"""simple docstring"""





		A    =							"mobilenet_v2"
		def __init__( self					,				SCREAMING_SNAKE_CASE__=3					,				SCREAMING_SNAKE_CASE__=2_24					,				SCREAMING_SNAKE_CASE__=1.0					,				SCREAMING_SNAKE_CASE__=8					,				SCREAMING_SNAKE_CASE__=8					,				SCREAMING_SNAKE_CASE__=6					,				SCREAMING_SNAKE_CASE__=32					,				SCREAMING_SNAKE_CASE__=True					,				SCREAMING_SNAKE_CASE__=True					,				SCREAMING_SNAKE_CASE__="relu6"					,				SCREAMING_SNAKE_CASE__=True					,				SCREAMING_SNAKE_CASE__=0.8					,				SCREAMING_SNAKE_CASE__=0.0_2					,				SCREAMING_SNAKE_CASE__=0.0_0_1					,				SCREAMING_SNAKE_CASE__=2_55					,				**SCREAMING_SNAKE_CASE__					,				)      ->	int:

					"""simple docstring"""



					super().__init__(**SCREAMING_SNAKE_CASE__   )

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

					_UpperCamelCase					:Optional[int]					     =	num_channels
					_UpperCamelCase					:Tuple					     =	image_size
					_UpperCamelCase					:Union[str, Any]					     =	depth_multiplier
					_UpperCamelCase					:Any					     =	depth_divisible_by
					_UpperCamelCase					:Optional[int]					     =	min_depth
					_UpperCamelCase					:Union[str, Any]					     =	expand_ratio
					_UpperCamelCase					:str					     =	output_stride
					_UpperCamelCase					:Tuple					     =	first_layer_is_expansion
					_UpperCamelCase					:Any					     =	finegrained_output
					_UpperCamelCase					:Union[str, Any]					     =	hidden_act
					_UpperCamelCase					:Any					     =	tf_padding
					_UpperCamelCase					:str					     =	classifier_dropout_prob
					_UpperCamelCase					:Optional[Any]					     =	initializer_range
					_UpperCamelCase					:int					     =	layer_norm_eps
					_UpperCamelCase					:Union[str, Any]					     =	semantic_loss_ignore_index






class      A(  lowerCamelCase__		):

		"""simple docstring"""





		A    =							version.parse("1.11"		)
		@property
		def   _UpperCamelCase( self   )      ->	Mapping[str, Mapping[int, str]]:

					"""simple docstring"""



					return OrderedDict([('''pixel_values''', {0: '''batch'''})]   )
		@property
		def   _UpperCamelCase( 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   _UpperCamelCase( self   )      ->	float:

					"""simple docstring"""



					return 1E-4

