


from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


a			:			Tuple												=					logging.get_logger(__name__)

a			:			List[str]												=					{
    '''microsoft/focalnet-tiny''': '''https://huggingface.co/microsoft/focalnet-tiny/resolve/main/config.json''',
}
class 						lowerCamelCase_							(					lowerCAmelCase__  ,  lowerCAmelCase__					):



					'''simple docstring'''







					__UpperCAmelCase							  =					"focalnet"






					def __init__(					self			,							snake_case_=2_2_4			,							snake_case_=4			,							snake_case_=3			,							snake_case_=9_6			,							snake_case_=False			,							snake_case_=[1_9_2, 3_8_4, 7_6_8, 7_6_8]			,							snake_case_=[2, 2, 6, 2]			,							snake_case_=[2, 2, 2, 2]			,							snake_case_=[3, 3, 3, 3]			,							snake_case_="gelu"			,							snake_case_=4.0			,							snake_case_=0.0			,							snake_case_=0.1			,							snake_case_=False			,							snake_case_=1e-4			,							snake_case_=False			,							snake_case_=False			,							snake_case_=False			,							snake_case_=0.0_2			,							snake_case_=1e-5			,							snake_case_=3_2			,							snake_case_=None			,							snake_case_=None			,							**snake_case_			,							) ->      Tuple:







								'''simple docstring'''

								super().__init__(**snake_case_    )

								__lowercase			       = image_size
								__lowercase			       = patch_size
								__lowercase			       = num_channels
								__lowercase			       = embed_dim
								__lowercase			       = use_conv_embed
								__lowercase			       = hidden_sizes
								__lowercase			       = depths
								__lowercase			       = focal_levels
								__lowercase			       = focal_windows
								__lowercase			       = hidden_act
								__lowercase			       = mlp_ratio
								__lowercase			       = hidden_dropout_prob
								__lowercase			       = drop_path_rate
								__lowercase			       = use_layerscale
								__lowercase			       = layerscale_value
								__lowercase			       = use_post_layernorm
								__lowercase			       = use_post_layernorm_in_modulation
								__lowercase			       = normalize_modulator
								__lowercase			       = initializer_range
								__lowercase			       = layer_norm_eps
								__lowercase			       = encoder_stride
								__lowercase			       = ['''stem'''] + [F'stage{idx}' for idx in range(1			,							len(self.depths    ) + 1    )]
								__lowercase       ,			__lowercase			       = get_aligned_output_features_output_indices(
								    out_features=snake_case_			,							out_indices=snake_case_			,							stage_names=self.stage_names    )






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

a			:			Dict												=					'''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

a			:			Optional[int]												=					concatenate_datasets
a			:			List[Any]												=					DownloadConfig
a			:			List[Any]												=					DownloadManager
a			:			str												=					DownloadMode
a			:			int												=					DownloadConfig
a			:			List[str]												=					DownloadMode
a			:			Optional[int]												=					DownloadManager

del _arrow_dataset, _utils, _deprecated_download_manager


