






"""simple docstring"""



from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


A__	:    List[Any]			 = logging.get_logger(__name__)

A__	:    Optional[Any]			 = {
    'google/bigbird-roberta-base': 'https://huggingface.co/google/bigbird-roberta-base/resolve/main/config.json',
    'google/bigbird-roberta-large': 'https://huggingface.co/google/bigbird-roberta-large/resolve/main/config.json',
    'google/bigbird-base-trivia-itc': 'https://huggingface.co/google/bigbird-base-trivia-itc/resolve/main/config.json',
    # See all BigBird models at https://huggingface.co/models?filter=big_bird
}







class        lowercase__      (							a__       ):
			_UpperCAmelCase		:Optional[int]             =			"big_bird"


			def __init__(				self					:  Dict       ,	snake_case__					:  int=5_0358       ,	snake_case__					:  List[Any]=768       ,	snake_case__					:  Any=12       ,	snake_case__					:  str=12       ,	snake_case__					:  List[Any]=3072       ,	snake_case__					:  str="gelu_new"       ,	snake_case__					:  Optional[Any]=0.1       ,	snake_case__					:  List[Any]=0.1       ,	snake_case__					:  List[Any]=4096       ,	snake_case__					:  int=2       ,	snake_case__					:  Optional[int]=0.02       ,	snake_case__					:  str=1E-12       ,	snake_case__					:  List[str]=True       ,	snake_case__					:  Dict=0       ,	snake_case__					:  str=1       ,	snake_case__					:  List[Any]=2       ,	snake_case__					:  Optional[int]=66       ,	snake_case__					:  Union[str, Any]="block_sparse"       ,	snake_case__					:  Any=True       ,	snake_case__					:  List[Any]=False       ,	snake_case__					:  List[Any]=64       ,	snake_case__					:  Union[str, Any]=3       ,	snake_case__					:  Tuple=None       ,	**snake_case__					:  int       ,	):
										super().__init__(
										    pad_token_id=SCREAMING_SNAKE_CASE_       ,	bos_token_id=SCREAMING_SNAKE_CASE_       ,	eos_token_id=SCREAMING_SNAKE_CASE_       ,	sep_token_id=SCREAMING_SNAKE_CASE_       ,	**SCREAMING_SNAKE_CASE_       ,	)

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

										lowerCamelCase_	:							Tuple									=rescale_embeddings
										lowerCamelCase_	:							Tuple									=attention_type
										lowerCamelCase_	:							Optional[int]									=use_bias
										lowerCamelCase_	:							Dict									=block_size
										lowerCamelCase_	:							Any									=num_random_blocks
										lowerCamelCase_	:							List[Any]									=classifier_dropout







class        lowercase__      (							a__       ):


			@property
			def      UpperCAmelCase__						(				self					:  Tuple ):
										if self.task == "multiple-choice":
																	lowerCamelCase_	:							Any									={0: 'batch', 1: 'choice', 2: 'sequence'}
										else:
																	lowerCamelCase_	:							Dict									={0: 'batch', 1: 'sequence'}
										return OrderedDict(
										    [
										        ("input_ids", dynamic_axis),
										        ("attention_mask", dynamic_axis),
										    ] )













"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


A__	:    str			 = logging.get_logger(__name__)







class        lowercase__      (							snake_case__       ):


			def __init__(				self					:  Optional[Any]       ,	*snake_case__					:  int       ,	**snake_case__					:  Any ):
										warnings.warn(
										    "The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
										    " Please use PerceiverImageProcessor instead."       ,	snake_case__       ,	)
										super().__init__(*snake_case__       ,	**snake_case__ )



