





"""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							=      logging.get_logger(__name__)

_UpperCamelCase							=      {
    '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_							(    snake_case__   ):
				__snake_case   :       Union[str, Any]	 =		"""mobilenet_v1"""




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

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

											__lowerCamelCase      :      Any         =num_channels
											__lowerCamelCase      :      Dict         =image_size
											__lowerCamelCase      :      List[Any]         =depth_multiplier
											__lowerCamelCase      :      Any         =min_depth
											__lowerCamelCase      :      List[Any]         =hidden_act
											__lowerCamelCase      :      Union[str, Any]         =tf_padding
											__lowerCamelCase      :      List[Any]         =classifier_dropout_prob
											__lowerCamelCase      :      List[Any]         =initializer_range
											__lowerCamelCase      :      Optional[Any]         =layer_norm_eps

class 		SCREAMING_SNAKE_CASE_							(    snake_case__   ):
				__snake_case   :       Union[str, Any]	 =		version.parse("""1.11"""   )




				@property
				def 					__lowercase  (     self  :Tuple			):
											return OrderedDict([('''pixel_values''', {0: '''batch'''})]			)




				@property
				def 					__lowercase  (     self  :int			):
											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  :Tuple			):
											return 1e-4











"""simple docstring"""





from .glue import GlueDataset, GlueDataTrainingArguments
from .language_modeling import (
    LineByLineTextDataset,
    LineByLineWithRefDataset,
    LineByLineWithSOPTextDataset,
    TextDataset,
    TextDatasetForNextSentencePrediction,
)
from .squad import SquadDataset, SquadDataTrainingArguments




