






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


__a				  =   logging.get_logger(__name__)

__a				  =   {
    "facebook/data2vec-vision-base-ft": (
        "https://huggingface.co/facebook/data2vec-vision-base-ft/resolve/main/config.json"
    ),
}


class       __lowercase      (	lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				"data2vec-vision"




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


         """simple docstring"""



         super().__init__(**UpperCamelCase_				)

         __A         =	hidden_size
         __A         =	num_hidden_layers
         __A         =	num_attention_heads
         __A         =	intermediate_size
         __A         =	hidden_act
         __A         =	hidden_dropout_prob
         __A         =	attention_probs_dropout_prob
         __A         =	initializer_range
         __A         =	layer_norm_eps

         __A         =	image_size
         __A         =	patch_size
         __A         =	num_channels
         __A         =	use_mask_token
         __A         =	use_absolute_position_embeddings
         __A         =	use_relative_position_bias
         __A         =	use_shared_relative_position_bias
         __A         =	layer_scale_init_value
         __A         =	drop_path_rate
         __A         =	use_mean_pooling
         # decode head attributes (semantic segmentation)
         __A         =	out_indices
         __A         =	pool_scales
         # auxiliary head attributes (semantic segmentation)
         __A         =	use_auxiliary_head
         __A         =	auxiliary_loss_weight
         __A         =	auxiliary_channels
         __A         =	auxiliary_num_convs
         __A         =	auxiliary_concat_input
         __A         =	semantic_loss_ignore_index


class       __lowercase      (	lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				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       :			Tuple				):


         """simple docstring"""



         return 1e-4












def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			str = "The quick brown fox jumps over the lazy dog"			,				)						->      bool:





    """simple docstring"""

    __A         =	set()

    # Replace all the whitespace in our sentence
    __A         =	input_str.replace(""" """			,				""""""    )
    for alpha in input_str:
        if "a" <= alpha.lower() <= "z":
            frequency.add(alpha.lower()    )
    return len(__lowercase    ) == 2_6



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			str = "The quick brown fox jumps over the lazy dog"			,				)						->      bool:





    """simple docstring"""

    __A         =	[False] * 2_6
    for char in input_str:
        if char.islower():
            __A         =	True
        elif char.isupper():
            __A         =	True
    return all(__lowercase    )



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			str = "The quick brown fox jumps over the lazy dog"			,				)						->      bool:





    """simple docstring"""

    return len({char for char in input_str.lower() if char.isalpha()}    ) == 2_6



def 			_SCREAMING_SNAKE_CASE						( )						->      None:





    """simple docstring"""

    from timeit import timeit

    __A         =	"""from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"""
    print(timeit("""is_pangram()"""			,				setup=__lowercase    )    )
    print(timeit("""is_pangram_faster()"""			,				setup=__lowercase    )    )
    print(timeit("""is_pangram_fastest()"""			,				setup=__lowercase    )    )
    # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
    # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  benchmark()




