


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


a : Optional[Any]		=				logging.get_logger(__name__)

a : Optional[int]		=				{
    '''google/fnet-base''': '''https://huggingface.co/google/fnet-base/resolve/main/config.json''',
    '''google/fnet-large''': '''https://huggingface.co/google/fnet-large/resolve/main/config.json'''
    # See all FNet models at https://huggingface.co/models?filter=fnet
}
class 	lowerCamelCase_       (				lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase            =				"fnet"






					def __init__(				self ,       snake_case_=3_2_0_0_0 ,       snake_case_=7_6_8 ,       snake_case_=1_2 ,       snake_case_=3_0_7_2 ,       snake_case_="gelu_new" ,       snake_case_=0.1 ,       snake_case_=5_1_2 ,       snake_case_=4 ,       snake_case_=0.0_2 ,       snake_case_=1e-1_2 ,       snake_case_=False ,       snake_case_=5_1_2 ,       snake_case_=3 ,       snake_case_=1 ,       snake_case_=2 ,       **snake_case_ ,       )   ->			Optional[Any]:







								'''simple docstring'''

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

								__lowercase 					=   vocab_size
								__lowercase 					=   max_position_embeddings
								__lowercase 					=   hidden_size
								__lowercase 					=   num_hidden_layers
								__lowercase 					=   intermediate_size
								__lowercase 					=   hidden_act
								__lowercase 					=   hidden_dropout_prob
								__lowercase 					=   initializer_range
								__lowercase 					=   type_vocab_size
								__lowercase 					=   layer_norm_eps
								__lowercase 					=   use_tpu_fourier_optimizations
								__lowercase 					=   tpu_short_seq_length






from ..utils import DummyObject, requires_backends
class 	lowerCamelCase_       (				metaclass=lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase            =				["onnx"]






					def __init__(				self ,       *snake_case_ ,       **snake_case_						)   ->			List[Any]:







								'''simple docstring'''

								requires_backends(self ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			int:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			List[str]:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)


