





"""simple docstring"""





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


_UpperCamelCase							=      logging.get_logger(__name__)

_UpperCamelCase							=      {
    '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_							(    snake_case__   ):
				"""simple docstring"""
				__snake_case   :       List[str]	 =		"""canine"""




				def __init__(     self  :Optional[int]						,    __lowercase  :Tuple=768						,    __lowercase  :Union[str, Any]=12						,    __lowercase  :List[str]=12						,    __lowercase  :Union[str, Any]=3072						,    __lowercase  :Union[str, Any]="gelu"						,    __lowercase  :Optional[int]=0.1						,    __lowercase  :Optional[Any]=0.1						,    __lowercase  :Union[str, Any]=1_6384						,    __lowercase  :str=16						,    __lowercase  :Any=0.02						,    __lowercase  :Union[str, Any]=1e-1_2						,    __lowercase  :str=0						,    __lowercase  :int=0Xe_000						,    __lowercase  :List[Any]=0Xe_001						,    __lowercase  :Optional[Any]=4						,    __lowercase  :int=4						,    __lowercase  :Any=8						,    __lowercase  :List[Any]=1_6384						,    __lowercase  :str=128						,    **__lowercase  :Dict						,    ):
											super().__init__(pad_token_id=__lowercase						,    bos_token_id=__lowercase						,    eos_token_id=__lowercase						,    **__lowercase			)

											__lowerCamelCase      :      str         =max_position_embeddings
											__lowerCamelCase      :      List[Any]         =hidden_size
											__lowerCamelCase      :      List[str]         =num_hidden_layers
											__lowerCamelCase      :      int         =num_attention_heads
											__lowerCamelCase      :      List[str]         =intermediate_size
											__lowerCamelCase      :      Optional[int]         =hidden_act
											__lowerCamelCase      :      List[str]         =hidden_dropout_prob
											__lowerCamelCase      :      Any         =attention_probs_dropout_prob
											__lowerCamelCase      :      Any         =initializer_range
											__lowerCamelCase      :      Any         =type_vocab_size
											__lowerCamelCase      :      int         =layer_norm_eps

											# Character config:
											__lowerCamelCase      :      Dict         =downsampling_rate
											__lowerCamelCase      :      Dict         =upsampling_kernel_size
											__lowerCamelCase      :      Dict         =num_hash_functions
											__lowerCamelCase      :      Optional[Any]         =num_hash_buckets
											__lowerCamelCase      :      List[Any]         =local_transformer_stride











"""simple docstring"""





import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


_UpperCamelCase							=      logging.get_logger(__name__)
class 		SCREAMING_SNAKE_CASE_							(    snake_case__   ):
				"""simple docstring"""




				def __init__(     self  :List[str]						,    *__lowercase  :int						,    **__lowercase  :Any			):
											warnings.warn(
											    '''The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
											    ''' use FlavaImageProcessor instead.'''						,    __lowercase						,    )
											super().__init__(*__lowercase						,    **__lowercase			)




