



from ...configuration_utils import PretrainedConfig
from ...utils import logging


_lowerCamelCase						    =  logging.get_logger(__name__)

_lowerCamelCase						    =  {
    """google/canine-s""": """https://huggingface.co/google/canine-s/resolve/main/config.json""",
    # See all CANINE models at https://huggingface.co/models?filter=canine
}

class       _SCREAMING_SNAKE_CASE	(__lowerCamelCase ):
     lowerCAmelCase					=			'''canine'''





     def __init__(       self :							List[str]     ,  UpperCamelCase :							Union[str, Any]=7_6_8     ,  UpperCamelCase :							str=1_2     ,  UpperCamelCase :							Union[str, Any]=1_2     ,  UpperCamelCase :							Any=3_0_7_2     ,  UpperCamelCase :							List[str]="gelu"     ,  UpperCamelCase :							Dict=0.1     ,  UpperCamelCase :							Optional[int]=0.1     ,  UpperCamelCase :							str=1_6_3_8_4     ,  UpperCamelCase :							Optional[Any]=1_6     ,  UpperCamelCase :							List[Any]=0.0_2     ,  UpperCamelCase :							str=1E-12     ,  UpperCamelCase :							Optional[Any]=0     ,  UpperCamelCase :							Optional[int]=0XE0_00     ,  UpperCamelCase :							List[str]=0XE0_01     ,  UpperCamelCase :							List[Any]=4     ,  UpperCamelCase :							Any=4     ,  UpperCamelCase :							int=8     ,  UpperCamelCase :							Any=1_6_3_8_4     ,  UpperCamelCase :							Any=1_2_8     ,  **UpperCamelCase :							Optional[int]     ,  )->Optional[Any]:
      super().__init__(pad_token_id=a_     ,  bos_token_id=a_     ,  eos_token_id=a_     ,  **a_				)

      __SCREAMING_SNAKE_CASE       :    Dict       =	max_position_embeddings
      __SCREAMING_SNAKE_CASE       :    List[Any]       =	hidden_size
      __SCREAMING_SNAKE_CASE       :    str       =	num_hidden_layers
      __SCREAMING_SNAKE_CASE       :    Optional[int]       =	num_attention_heads
      __SCREAMING_SNAKE_CASE       :    List[str]       =	intermediate_size
      __SCREAMING_SNAKE_CASE       :    Tuple       =	hidden_act
      __SCREAMING_SNAKE_CASE       :    Any       =	hidden_dropout_prob
      __SCREAMING_SNAKE_CASE       :    Any       =	attention_probs_dropout_prob
      __SCREAMING_SNAKE_CASE       :    List[Any]       =	initializer_range
      __SCREAMING_SNAKE_CASE       :    Union[str, Any]       =	type_vocab_size
      __SCREAMING_SNAKE_CASE       :    List[str]       =	layer_norm_eps

      # Character config:
      __SCREAMING_SNAKE_CASE       :    List[Any]       =	downsampling_rate
      __SCREAMING_SNAKE_CASE       :    Union[str, Any]       =	upsampling_kernel_size
      __SCREAMING_SNAKE_CASE       :    Optional[Any]       =	num_hash_functions
      __SCREAMING_SNAKE_CASE       :    str       =	num_hash_buckets
      __SCREAMING_SNAKE_CASE       :    int       =	local_transformer_stride











import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


_lowerCamelCase						    =  logging.get_logger(__name__)

class       _SCREAMING_SNAKE_CASE	(UpperCamelCase ):





     def __init__(       self :							int     ,  *UpperCamelCase :							Optional[int]     ,  **UpperCamelCase :							Optional[int]				)->None:
      warnings.warn(
          "The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
          " Please use LayoutLMv2ImageProcessor instead."     ,  UpperCamelCase     ,  )
      super().__init__(*UpperCamelCase     ,  **UpperCamelCase				)






