
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     :	List[str]       			=  logging.get_logger(__name__)

__lowerCAmelCase     :	Optional[int]       			=  {
    '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 			UpperCAmelCase_     (					_A	):


  '''simple docstring'''







  a__       			=						"""mobilenet_v2"""
  def __init__(					self     :					Dict     ,				UpperCamelCase__     :					Any=3     ,				UpperCamelCase__     :					int=224     ,				UpperCamelCase__     :					Any=1.0     ,				UpperCamelCase__     :					Optional[int]=8     ,				UpperCamelCase__     :					Union[str, Any]=8     ,				UpperCamelCase__     :					List[str]=6     ,				UpperCamelCase__     :					Optional[int]=32     ,				UpperCamelCase__     :					Dict=True     ,				UpperCamelCase__     :					List[str]=True     ,				UpperCamelCase__     :					Optional[Any]="relu6"     ,				UpperCamelCase__     :					Optional[Any]=True     ,				UpperCamelCase__     :					int=0.8     ,				UpperCamelCase__     :					str=0.02     ,				UpperCamelCase__     :					Any=0.001     ,				UpperCamelCase__     :					Dict=255     ,				**UpperCamelCase__     :					List[str]     ,				)     ->      Optional[int]:







    """simple docstring"""






    super().__init__(**UpperCamelCase__       )

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

    __magic_name__								=			num_channels
    __magic_name__								=			image_size
    __magic_name__								=			depth_multiplier
    __magic_name__								=			depth_divisible_by
    __magic_name__								=			min_depth
    __magic_name__								=			expand_ratio
    __magic_name__								=			output_stride
    __magic_name__								=			first_layer_is_expansion
    __magic_name__								=			finegrained_output
    __magic_name__								=			hidden_act
    __magic_name__								=			tf_padding
    __magic_name__								=			classifier_dropout_prob
    __magic_name__								=			initializer_range
    __magic_name__								=			layer_norm_eps
    __magic_name__								=			semantic_loss_ignore_index







class 			UpperCAmelCase_     (					_A	):


  '''simple docstring'''







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







    """simple docstring"""






    return OrderedDict([("""pixel_values""", {0: """batch"""})]       )
  @property
  def 				_lowercase				(					self     :					Union[str, Any]       )     ->      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 				_lowercase				(					self     :					List[Any]       )     ->      float:







    """simple docstring"""






    return 1E-4



import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


__lowerCAmelCase     :	int       			=  logging.get_logger(__name__)




class 			UpperCAmelCase_     (					_A	):


  '''simple docstring'''







  def __init__(					self     :					int     ,				*UpperCamelCase__     :					Optional[Any]     ,				**UpperCamelCase__     :					Optional[Any]       )     ->      None:







    """simple docstring"""






    warnings.warn(
        """The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
        """ use BeitImageProcessor instead."""     ,				UpperCamelCase__     ,				)
    super().__init__(*UpperCamelCase__     ,				**UpperCamelCase__       )

