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

lowercase__  :      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							(	lowerCamelCase					):




  '''simple docstring'''



  lowerCAmelCase__										=	'''mobilenet_v1'''






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

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

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







class lowerCamelCase							(	lowerCamelCase					):




  '''simple docstring'''



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






  @property
  def  lowerCAmelCase__ (      self			:       int  )				->Mapping[str, Mapping[int, str]]:
        return OrderedDict([('''pixel_values''', {0: '''batch'''})]  )






  @property
  def  lowerCAmelCase__ (      self			:       Optional[Any]  )				->Mapping[str, Mapping[int, str]]:
        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			:       int  )				->float:
        return 1e-4






'''simple docstring'''
lowercase__  :      Union[str, Any]        =					"\n# Transformers 설치 방법\n! pip install transformers datasets\n# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

lowercase__  :      str        =					[{"type": "code", "content": INSTALL_CONTENT}]
lowercase__  :      Any        =					{
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}





