





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


lowerCAmelCase__     			=			logging.get_logger(__name__)

lowerCAmelCase__     			=			{
    '''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      (       _lowercase ):
						UpperCAmelCase_ =			"mobilenet_v1"


						def __init__(self   ,							__a=3   ,							__a=2_24   ,							__a=1.0   ,							__a=8   ,							__a="relu6"   ,							__a=True   ,							__a=0.999   ,							__a=0.02   ,							__a=0.001   ,							**__a   ,							) ->   Dict:
								super().__init__(**__a		)

								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      (       _lowercase ):
						UpperCAmelCase_ =			version.parse("1.11" )


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


						@property
						def     snake_case_   (self		) ->   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     snake_case_   (self		) ->   float:
								return 1e-4













"""simple docstring"""





from diffusers.utils.testing_utils import require_onnxruntime





@require_onnxruntime
class        _lowerCamelCase      :
						pass






