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

UpperCamelCase__     :	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 				_lowercase	(      lowerCAmelCase   ):
      '''simple docstring'''


      UpperCAmelCase_      :      str      							=   '''mobilenet_v2'''




      def __init__(				self					,lowerCamelCase_=3					,lowerCamelCase_=224					,lowerCamelCase_=1.0					,lowerCamelCase_=8					,lowerCamelCase_=8					,lowerCamelCase_=6					,lowerCamelCase_=32					,lowerCamelCase_=True					,lowerCamelCase_=True					,lowerCamelCase_="relu6"					,lowerCamelCase_=True					,lowerCamelCase_=0.8					,lowerCamelCase_=0.02					,lowerCamelCase_=0.001					,lowerCamelCase_=255					,**lowerCamelCase_					,)			->			List[str]:



         '''simple docstring'''



         super().__init__(**lowerCamelCase_							)

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

         UpperCAmelCase__							:				str   				=  num_channels
         UpperCAmelCase__							:				Dict   				=  image_size
         UpperCAmelCase__							:				List[str]   				=  depth_multiplier
         UpperCAmelCase__							:				Optional[int]   				=  depth_divisible_by
         UpperCAmelCase__							:				Union[str, Any]   				=  min_depth
         UpperCAmelCase__							:				List[Any]   				=  expand_ratio
         UpperCAmelCase__							:				List[str]   				=  output_stride
         UpperCAmelCase__							:				List[Any]   				=  first_layer_is_expansion
         UpperCAmelCase__							:				Tuple   				=  finegrained_output
         UpperCAmelCase__							:				Union[str, Any]   				=  hidden_act
         UpperCAmelCase__							:				List[Any]   				=  tf_padding
         UpperCAmelCase__							:				Dict   				=  classifier_dropout_prob
         UpperCAmelCase__							:				Optional[Any]   				=  initializer_range
         UpperCAmelCase__							:				List[Any]   				=  layer_norm_eps
         UpperCAmelCase__							:				List[str]   				=  semantic_loss_ignore_index




class 				_lowercase	(      lowerCAmelCase   ):
      '''simple docstring'''


      UpperCAmelCase_      :      str      							=   version.parse('''1.11'''   )




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



         '''simple docstring'''



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




      @property
      def 		lowerCAmelCase__					(				self							)			->			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 		lowerCAmelCase__					(				self							)			->			float:



         '''simple docstring'''



         return 1e-4





'''simple docstring'''

import re







def __UpperCamelCase(   _A					:				str    ):
   '''simple docstring'''

   if len(re.findall('''[ATCG]'''  ,			_A    )    ) != len(_A    ):
      raise ValueError('''Invalid Strand'''    )

   return dna.translate(dna.maketrans('''ATCG'''  ,			'''TAGC'''    )    )


if __name__ == "__main__":
  import doctest

  doctest.testmod()




