




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


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

_lowerCamelCase      :						Union[str, 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 							UpperCamelCase_       (					UpperCAmelCase__	):

    '''simple docstring'''






    UpperCAmelCase__				    = '''mobilenet_v1'''


    def __init__(     self :      Optional[int]   ,					UpperCAmelCase__ :      Optional[int]=3   ,					UpperCAmelCase__ :      Optional[Any]=224   ,					UpperCAmelCase__ :      Optional[int]=1.0   ,					UpperCAmelCase__ :      Optional[int]=8   ,					UpperCAmelCase__ :      Tuple="relu6"   ,					UpperCAmelCase__ :      List[Any]=True   ,					UpperCAmelCase__ :      Dict=0.999   ,					UpperCAmelCase__ :      str=0.02   ,					UpperCAmelCase__ :      Optional[int]=0.001   ,					**UpperCAmelCase__ :      Dict   ,					)		->List[str]:





           '''simple docstring'''

           super().__init__(**UpperCAmelCase__)

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

           A__ 					=       num_channels
           A__ 					=       image_size
           A__ 					=       depth_multiplier
           A__ 					=       min_depth
           A__ 					=       hidden_act
           A__ 					=       tf_padding
           A__ 					=       classifier_dropout_prob
           A__ 					=       initializer_range
           A__ 					=       layer_norm_eps


class 							UpperCamelCase_       (					UpperCAmelCase__	):

    '''simple docstring'''






    UpperCAmelCase__				    = version.parse('''1.11'''	)


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





           '''simple docstring'''

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


    @property
    def 			SCREAMING_SNAKE_CASE				(     self :      List[str])		->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 			SCREAMING_SNAKE_CASE				(     self :      int)		->float:





           '''simple docstring'''

           return 1e-4






'''simple docstring'''
from __future__ import annotations

from math import pi, sqrt


def      a (     __a					,   __a  )    ->      tuple:



					'''simple docstring'''






					if inductance <= 0:
										raise ValueError('''Inductance cannot be 0 or negative'''  )

					elif capacitance <= 0:
										raise ValueError('''Capacitance cannot be 0 or negative'''  )

					else:
										return (
										    "Resonant frequency",
										    float(1 / (2 * pi * (sqrt(inductance * capacitance  )))  ),
										)


if __name__ == "__main__":
		import doctest

		doctest.testmod()