'''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_			    =							{
    '''microsoft/beit-base-patch16-224-pt22k''': (
        '''https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json'''
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}




class  __magic_name__  (		__a    ):





   """simple docstring"""




   lowerCAmelCase      :    Union[str, Any]  			=   '''beit'''



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



    """simple docstring"""



    super().__init__(**_lowercase							)

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

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




class  __magic_name__  (		__a    ):





   """simple docstring"""




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



   @property
   def   lowerCAmelCase						(	self					:  int							):



    """simple docstring"""



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



   @property
   def   lowerCAmelCase						(	self					:  Optional[int]							):



    """simple docstring"""



    return 1E-4
# Lint as: python3
# pylint: enable=line-too-long
# pylint: disable=g-import-not-at-top,g-bad-import-order,wrong-import-position

UpperCAmelCase_			    =							'''2.13.1'''

import platform

import pyarrow
from packaging import version


if version.parse(platform.python_version()) < version.parse('''3.7'''):
  raise ImportWarning(
      '''To use `datasets`, Python>=3.7 is required, and the current version of Python doesn\'t match this condition.'''
  )

if version.parse(pyarrow.__version__).major < 8:
  raise ImportWarning(
      '''To use `datasets`, the module `pyarrow>=8.0.0` is required, and the current version of `pyarrow` doesn\'t match this condition.\n'''
      '''If you are running this in a Google Colab, you should probably just restart the runtime to use the right version of `pyarrow`.'''
  )

del platform
del pyarrow
del version

from .arrow_dataset import Dataset
from .arrow_reader import ReadInstruction
from .builder import ArrowBasedBuilder, BeamBasedBuilder, BuilderConfig, DatasetBuilder, GeneratorBasedBuilder
from .combine import concatenate_datasets, interleave_datasets
from .dataset_dict import DatasetDict, IterableDatasetDict
from .download import *
from .features import *
from .fingerprint import disable_caching, enable_caching, is_caching_enabled, set_caching_enabled
from .info import DatasetInfo, MetricInfo
from .inspect import (
    get_dataset_config_info,
    get_dataset_config_names,
    get_dataset_infos,
    get_dataset_split_names,
    inspect_dataset,
    inspect_metric,
    list_datasets,
    list_metrics,
)
from .iterable_dataset import IterableDataset
from .load import load_dataset, load_dataset_builder, load_from_disk, load_metric
from .metric import Metric
from .splits import (
    NamedSplit,
    NamedSplitAll,
    Split,
    SplitBase,
    SplitDict,
    SplitGenerator,
    SplitInfo,
    SubSplitInfo,
    percent,
)
from .tasks import *
from .utils import *
from .utils import logging


# deprecated modules
from datasets import arrow_dataset as _arrow_dataset  # isort:skip
from datasets import utils as _utils  # isort:skip
from datasets.utils import download_manager as _deprecated_download_manager  # isort:skip

UpperCAmelCase_			    =							concatenate_datasets
UpperCAmelCase_			    =							DownloadConfig
UpperCAmelCase_			    =							DownloadManager
UpperCAmelCase_			    =							DownloadMode
UpperCAmelCase_			    =							DownloadConfig
UpperCAmelCase_			    =							DownloadMode
UpperCAmelCase_			    =							DownloadManager

del _arrow_dataset, _utils, _deprecated_download_manager