






'''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   :					Optional[int]   							=					logging.get_logger(__name__)

__lowerCamelCase   :					Optional[int]   							=					{
    '''facebook/data2vec-vision-base-ft''': (
        '''https://huggingface.co/facebook/data2vec-vision-base-ft/resolve/main/config.json'''
    ),
}







class    A_	(a_							):
							"""simple docstring"""




							a__   		=	'''data2vec-vision'''

							def __init__(		self			:List[str]       ,							lowerCAmelCase__			:List[Any]=768       ,							lowerCAmelCase__			:List[Any]=12       ,							lowerCAmelCase__			:Dict=12       ,							lowerCAmelCase__			:Tuple=3_072       ,							lowerCAmelCase__			:int="gelu"       ,							lowerCAmelCase__			:Tuple=0.0       ,							lowerCAmelCase__			:Dict=0.0       ,							lowerCAmelCase__			:Optional[int]=0.0_2       ,							lowerCAmelCase__			:Dict=1E-1_2       ,							lowerCAmelCase__			:Optional[Any]=224       ,							lowerCAmelCase__			:Any=16       ,							lowerCAmelCase__			:Tuple=3       ,							lowerCAmelCase__			:Dict=False       ,							lowerCAmelCase__			:str=False       ,							lowerCAmelCase__			:List[Any]=False       ,							lowerCAmelCase__			:Union[str, Any]=False       ,							lowerCAmelCase__			:List[Any]=0.1       ,							lowerCAmelCase__			:List[str]=0.1       ,							lowerCAmelCase__			:Optional[int]=True       ,							lowerCAmelCase__			:Tuple=[3, 5, 7, 11]       ,							lowerCAmelCase__			:Any=[1, 2, 3, 6]       ,							lowerCAmelCase__			:Optional[int]=True       ,							lowerCAmelCase__			:List[str]=0.4       ,							lowerCAmelCase__			:Optional[int]=256       ,							lowerCAmelCase__			:int=1       ,							lowerCAmelCase__			:str=False       ,							lowerCAmelCase__			:int=255       ,							**lowerCAmelCase__			:List[Any]       ,							)				->  Union[str, Any]:


										'''simple docstring'''




										super().__init__(**lowerCAmelCase__				)

										snake_case_				:					int   =       hidden_size
										snake_case_				:					int   =       num_hidden_layers
										snake_case_				:					List[Any]   =       num_attention_heads
										snake_case_				:					List[Any]   =       intermediate_size
										snake_case_				:					List[str]   =       hidden_act
										snake_case_				:					Dict   =       hidden_dropout_prob
										snake_case_				:					Any   =       attention_probs_dropout_prob
										snake_case_				:					List[str]   =       initializer_range
										snake_case_				:					Union[str, Any]   =       layer_norm_eps

										snake_case_				:					Any   =       image_size
										snake_case_				:					Any   =       patch_size
										snake_case_				:					List[Any]   =       num_channels
										snake_case_				:					Union[str, Any]   =       use_mask_token
										snake_case_				:					Any   =       use_absolute_position_embeddings
										snake_case_				:					Tuple   =       use_relative_position_bias
										snake_case_				:					Union[str, Any]   =       use_shared_relative_position_bias
										snake_case_				:					Dict   =       layer_scale_init_value
										snake_case_				:					Union[str, Any]   =       drop_path_rate
										snake_case_				:					List[Any]   =       use_mean_pooling
										# decode head attributes (semantic segmentation)
										snake_case_				:					List[Any]   =       out_indices
										snake_case_				:					Optional[Any]   =       pool_scales
										# auxiliary head attributes (semantic segmentation)
										snake_case_				:					Optional[Any]   =       use_auxiliary_head
										snake_case_				:					List[Any]   =       auxiliary_loss_weight
										snake_case_				:					Optional[Any]   =       auxiliary_channels
										snake_case_				:					Union[str, Any]   =       auxiliary_num_convs
										snake_case_				:					List[str]   =       auxiliary_concat_input
										snake_case_				:					Dict   =       semantic_loss_ignore_index







class    A_	(a_							):
							"""simple docstring"""




							a__   		=	version.parse('''1.11'''							)

							@property
							def 							_A	(		self			:Optional[int]				)				->  Optional[Any]:


										'''simple docstring'''




										return OrderedDict(
										    [
										        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
										    ]				)






							@property
							def 							_A	(		self			:List[str]				)				->  List[str]:


										'''simple docstring'''




										return 1E-4












'''simple docstring'''




from typing import TYPE_CHECKING

from ...file_utils import _LazyModule, is_torch_available
from ...utils import OptionalDependencyNotAvailable


__lowerCamelCase   :					Dict   							=					{
    '''configuration_gpt_neox_japanese''': ['''GPT_NEOX_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''GPTNeoXJapaneseConfig'''],
    '''tokenization_gpt_neox_japanese''': ['''GPTNeoXJapaneseTokenizer'''],
}

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__lowerCamelCase   :					int   							=					[
		    '''GPT_NEOX_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''GPTNeoXJapaneseForCausalLM''',
		    '''GPTNeoXJapaneseLayer''',
		    '''GPTNeoXJapaneseModel''',
		    '''GPTNeoXJapanesePreTrainedModel''',
		]


if TYPE_CHECKING:
		from .configuration_gpt_neox_japanese import GPT_NEOX_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP, GPTNeoXJapaneseConfig
		from .tokenization_gpt_neox_japanese import GPTNeoXJapaneseTokenizer

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_gpt_neox_japanese import (
				    GPT_NEOX_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST,
				    GPTNeoXJapaneseForCausalLM,
				    GPTNeoXJapaneseLayer,
				    GPTNeoXJapaneseModel,
				    GPTNeoXJapanesePreTrainedModel,
				)


else:
		import sys

		__lowerCamelCase   :					Optional[int]   							=					_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




