
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     lowerCamelCase      (       __lowerCamelCase					):
	UpperCamelCase_  :					str    		=	'canine'







	def __init__(     self      :Optional[Any]   ,     lowercase      :Optional[Any]=7_6_8   ,     lowercase      :Union[str, Any]=1_2   ,     lowercase      :Dict=1_2   ,     lowercase      :Tuple=3_0_7_2   ,     lowercase      :str="gelu"   ,     lowercase      :Optional[int]=0.1   ,     lowercase      :Optional[int]=0.1   ,     lowercase      :Dict=1_6_3_8_4   ,     lowercase      :Tuple=1_6   ,     lowercase      :Any=0.02   ,     lowercase      :int=1e-12   ,     lowercase      :Tuple=0   ,     lowercase      :int=0xe_0_0_0   ,     lowercase      :Optional[Any]=0xe_0_0_1   ,     lowercase      :Optional[Any]=4   ,     lowercase      :int=4   ,     lowercase      :str=8   ,     lowercase      :Union[str, Any]=1_6_3_8_4   ,     lowercase      :List[Any]=1_2_8   ,     **lowercase      :Optional[int]   ,     )		->      Optional[int]:







				"""simple docstring"""






				super().__init__(pad_token_id=lowercase   ,     bos_token_id=lowercase   ,     eos_token_id=lowercase   ,     **lowercase			)

				SCREAMING_SNAKE_CASE     						= max_position_embeddings
				SCREAMING_SNAKE_CASE     						= hidden_size
				SCREAMING_SNAKE_CASE     						= num_hidden_layers
				SCREAMING_SNAKE_CASE     						= num_attention_heads
				SCREAMING_SNAKE_CASE     						= intermediate_size
				SCREAMING_SNAKE_CASE     						= hidden_act
				SCREAMING_SNAKE_CASE     						= hidden_dropout_prob
				SCREAMING_SNAKE_CASE     						= attention_probs_dropout_prob
				SCREAMING_SNAKE_CASE     						= initializer_range
				SCREAMING_SNAKE_CASE     						= type_vocab_size
				SCREAMING_SNAKE_CASE     						= layer_norm_eps

				# Character config:
				SCREAMING_SNAKE_CASE     						= downsampling_rate
				SCREAMING_SNAKE_CASE     						= upsampling_kernel_size
				SCREAMING_SNAKE_CASE     						= num_hash_functions
				SCREAMING_SNAKE_CASE     						= num_hash_buckets
				SCREAMING_SNAKE_CASE     						= local_transformer_stride

import warnings

from ...utils import logging
from .image_processing_yolos import YolosImageProcessor


__lowerCAmelCase					   =       logging.get_logger(__name__)





class     lowerCamelCase      (       __lowerCamelCase					):







	def __init__(     self      :List[Any]   ,     *lowercase      :List[str]   ,     **lowercase      :List[Any]			)		->      None:







				"""simple docstring"""






				warnings.warn(
				    '''The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
				    ''' use YolosImageProcessor instead.'''   ,     lowercase   ,     )
				super().__init__(*lowercase   ,     **lowercase			)