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


lowercase__					       =	logging.get_logger(__name__)

lowercase__					       =	{
    '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    __snake_case       (     __lowerCAmelCase				):
      a__        =		"""mobilenet_v1"""



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





        '''simple docstring'''





        super().__init__(**lowercase)

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

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







class    __snake_case       (     __lowerCAmelCase				):
      a__        =		version.parse("""1.11"""				)



      @property
      def   lowerCamelCase_   (						self)	->			Optional[Any]:





        '''simple docstring'''





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



      @property
      def   lowerCamelCase_   (						self)	->			List[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   lowerCamelCase_   (						self)	->			Any:





        '''simple docstring'''





        return 1e-4








"""simple docstring"""






import math







def      _snake_case			(				lowercase__		):
				return math.sqrt(lowercase__		) * math.sqrt(lowercase__		) == num







def      _snake_case			(				lowercase__		):
				_lowerCamelCase     :			Optional[int]    =    0
				_lowerCamelCase     :			List[Any]    =    n
				while left <= right:
								_lowerCamelCase     :			str    =    (left + right) // 2
								if mid**2 == n:
												return True
								elif mid**2 > n:
												_lowerCamelCase     :			str    =    mid - 1
								else:
												_lowerCamelCase     :			Optional[int]    =    mid + 1
				return False


if __name__ == "__main__":
			import doctest

			doctest.testmod()