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


lowercase__							:							Any									=			logging.get_logger(__name__)

lowercase__							:							Union[str, Any]									=			{
    "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        SCREAMING_SNAKE_CASE__    (							SCREAMING_SNAKE_CASE_    ):

							"""simple docstring"""






							_snake_case     		=  'fnet'



							def __init__(  self     ,	SCREAMING_SNAKE_CASE_=32000     ,	SCREAMING_SNAKE_CASE_=768     ,	SCREAMING_SNAKE_CASE_=12     ,	SCREAMING_SNAKE_CASE_=3072     ,	SCREAMING_SNAKE_CASE_="gelu_new"     ,	SCREAMING_SNAKE_CASE_=0.1     ,	SCREAMING_SNAKE_CASE_=512     ,	SCREAMING_SNAKE_CASE_=4     ,	SCREAMING_SNAKE_CASE_=0.0_2     ,	SCREAMING_SNAKE_CASE_=1E-12     ,	SCREAMING_SNAKE_CASE_=False     ,	SCREAMING_SNAKE_CASE_=512     ,	SCREAMING_SNAKE_CASE_=3     ,	SCREAMING_SNAKE_CASE_=1     ,	SCREAMING_SNAKE_CASE_=2     ,	**SCREAMING_SNAKE_CASE_     ,	)->   Dict:





													'''simple docstring'''






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

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






def 	A_ (							snake_case							:   float )      ->    float:



						'''simple docstring'''

						if edge <= 0 or not isinstance(snake_case ,      snake_case ):
												raise ValueError('''Length must be a positive.''' )
						return 3 * ((25 + 10 * (5 ** (1 / 2))) ** (1 / 2)) * (edge**2)




def 	A_ (							snake_case							:   float )      ->    float:



						'''simple docstring'''

						if edge <= 0 or not isinstance(snake_case ,      snake_case ):
												raise ValueError('''Length must be a positive.''' )
						return ((15 + (7 * (5 ** (1 / 2)))) / 4) * (edge**3)


if __name__ == "__main__":
				import doctest

				doctest.testmod()




