





'''simple docstring'''



class       __SCREAMING_SNAKE_CASE	:



     '''simple docstring'''






     def __init__(					self						,   lowerCamelCase	):
       _snake_case     		=				set_counts
       _snake_case     		=				max(lowerCamelCase	)
       _snake_case     		=				len(lowerCamelCase	)
       _snake_case     		=				[1] * num_sets
       _snake_case     		=				list(range(lowerCamelCase	)	)

     def 	UpperCamelCase(					self						,   lowerCamelCase						,   lowerCamelCase	):
       _snake_case     		=				self.get_parent(lowerCamelCase	)
       _snake_case     		=				self.get_parent(lowerCamelCase	)

       if src_parent == dst_parent:
         return False

       if self.ranks[dst_parent] >= self.ranks[src_parent]:
         self.set_counts[dst_parent] += self.set_counts[src_parent]
         _snake_case     		=				0
         _snake_case     		=				dst_parent
         if self.ranks[dst_parent] == self.ranks[src_parent]:
           self.ranks[dst_parent] += 1
         _snake_case     		=				self.set_counts[dst_parent]
       else:
         self.set_counts[src_parent] += self.set_counts[dst_parent]
         _snake_case     		=				0
         _snake_case     		=				src_parent
         _snake_case     		=				self.set_counts[src_parent]

       _snake_case     		=				max(self.max_set						,   lowerCamelCase	)
       return True






     def 	UpperCamelCase(					self						,   lowerCamelCase	):
       if self.parents[disj_set] == disj_set:
         return disj_set
       _snake_case     		=				self.get_parent(self.parents[disj_set]	)
       return self.parents[disj_set]









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


__magic_name__   :						Dict    =			logging.get_logger(__name__)

__magic_name__   :						Dict    =			{
    """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       __SCREAMING_SNAKE_CASE	(						__UpperCamelCase			):



     '''simple docstring'''






     UpperCAmelCase__       :						List[Any]      =   '''mobilenet_v1'''

     def __init__(					self						,   lowerCamelCase=3						,   lowerCamelCase=224						,   lowerCamelCase=1.0						,   lowerCamelCase=8						,   lowerCamelCase="relu6"						,   lowerCamelCase=True						,   lowerCamelCase=0.999						,   lowerCamelCase=0.02						,   lowerCamelCase=0.001						,   **lowerCamelCase						,   ):
       super().__init__(**lowerCamelCase	)

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

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







class       __SCREAMING_SNAKE_CASE	(						__UpperCamelCase			):



     '''simple docstring'''






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

     @property
     def 	UpperCamelCase(					self	):
       return OrderedDict([("pixel_values", {0: "batch"})]	)

     @property
     def 	UpperCamelCase(					self	):
       if self.task == "image-classification":
         return OrderedDict([("logits", {0: "batch"})]	)
       else:
         return OrderedDict([("last_hidden_state", {0: "batch"}), ("pooler_output", {0: "batch"})]	)






     @property
     def 	UpperCamelCase(					self	):
       return 1e-4


