


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


_snake_case             =     logging.get_logger(__name__)

_snake_case             =     {
    '''weiweishi/roc-bert-base-zh''': '''https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json''',
}
class 	UpperCAmelCase_					(					UpperCamelCase    ):

   '''simple docstring'''




   __A :      Tuple     		=		"roc_bert"






   def __init__(		self						,				__A=3_0522						,				__A=768						,				__A=12						,				__A=12						,				__A=3072						,				__A="gelu"						,				__A=0.1						,				__A=0.1						,				__A=512						,				__A=2						,				__A=0.02						,				__A=1e-12						,				__A=True						,				__A=0						,				__A="absolute"						,				__A=None						,				__A=True						,				__A=True						,				__A=768						,				__A=910						,				__A=512						,				__A=2_4858						,				__A=True						,				**__A						,				):






     """simple docstring"""





     lowerCamelCase :					str    =				vocab_size
     lowerCamelCase :					Optional[Any]    =				max_position_embeddings
     lowerCamelCase :					Optional[int]    =				hidden_size
     lowerCamelCase :					Dict    =				num_hidden_layers
     lowerCamelCase :					Any    =				num_attention_heads
     lowerCamelCase :					List[Any]    =				intermediate_size
     lowerCamelCase :					Union[str, Any]    =				hidden_act
     lowerCamelCase :					List[Any]    =				hidden_dropout_prob
     lowerCamelCase :					List[str]    =				attention_probs_dropout_prob
     lowerCamelCase :					Union[str, Any]    =				initializer_range
     lowerCamelCase :					int    =				type_vocab_size
     lowerCamelCase :					Union[str, Any]    =				layer_norm_eps
     lowerCamelCase :					List[str]    =				use_cache
     lowerCamelCase :					Optional[int]    =				enable_pronunciation
     lowerCamelCase :					str    =				enable_shape
     lowerCamelCase :					Union[str, Any]    =				pronunciation_embed_dim
     lowerCamelCase :					Tuple    =				pronunciation_vocab_size
     lowerCamelCase :					Optional[int]    =				shape_embed_dim
     lowerCamelCase :					List[str]    =				shape_vocab_size
     lowerCamelCase :					List[str]    =				concat_input
     lowerCamelCase :					Dict    =				position_embedding_type
     lowerCamelCase :					Optional[Any]    =				classifier_dropout
     super().__init__(pad_token_id=__A						,				**__A )







import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


_snake_case             =     logging.get_logger(__name__)
class 	UpperCAmelCase_					(					UpperCamelCase    ):

   '''simple docstring'''




   def __init__(		self						,				*__A						,				**__A ):






     """simple docstring"""





     warnings.warn(
         "The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
         " use DPTImageProcessor instead."						,				__A						,				)
     super().__init__(*__A						,				**__A )



