






'''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							=logging.get_logger(__name__)

UpperCamelCase							={
    """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     A    (      __snake_case						):






	"""simple docstring"""





	__a			:						List[Any]      =						'mobilenet_v1'
	def __init__(							self			,     __lowerCAmelCase=3			,     __lowerCAmelCase=2_24			,     __lowerCAmelCase=1.0			,     __lowerCAmelCase=8			,     __lowerCAmelCase="relu6"			,     __lowerCAmelCase=True			,     __lowerCAmelCase=0.9_99			,     __lowerCAmelCase=0.02			,     __lowerCAmelCase=0.0_01			,     **__lowerCAmelCase			,     ):
							super().__init__(**A_ )

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

							UpperCamelCase_				:   List[str]					    =							num_channels
							UpperCamelCase_				:   Any					    =							image_size
							UpperCamelCase_				:   Optional[Any]					    =							depth_multiplier
							UpperCamelCase_				:   Union[str, Any]					    =							min_depth
							UpperCamelCase_				:   int					    =							hidden_act
							UpperCamelCase_				:   Union[str, Any]					    =							tf_padding
							UpperCamelCase_				:   Optional[Any]					    =							classifier_dropout_prob
							UpperCamelCase_				:   int					    =							initializer_range
							UpperCamelCase_				:   Tuple					    =							layer_norm_eps






class     A    (      __snake_case						):






	"""simple docstring"""





	__a			:						Any      =						version.parse('''1.11'''						)
	@property
	def   _UpperCAmelCase       (							self ):
							return OrderedDict([("""pixel_values""", {0: """batch"""})] )
	@property
	def   _UpperCAmelCase       (							self ):




							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 ):
							return 1E-4














'''simple docstring'''

def 							snake_case					(     a_							: int	)       ->				int:





      """simple docstring"""

      assert (
          isinstance(a_    ,   a_	) and number_of_steps > 0
      ), f"number_of_steps needs to be positive integer, your input {number_of_steps}"
      if number_of_steps == 1:
            return 1
      UpperCamelCase_    ,			UpperCamelCase_				:   str					    =							1, 1
      for _ in range(number_of_steps - 1	):
            UpperCamelCase_    ,			UpperCamelCase_				:   Tuple					    =							current + previous, current
      return current


if __name__ == "__main__":
      import doctest

      doctest.testmod()






