





'''simple docstring'''


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


_SCREAMING_SNAKE_CASE	 =							logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE	 =							{
    "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_		(		__magic_name__		):
 __lowerCamelCase						:							Tuple         =					"fnet"




 def __init__(	self			,     _lowerCAmelCase=32000			,     _lowerCAmelCase=768			,     _lowerCAmelCase=12			,     _lowerCAmelCase=3072			,     _lowerCAmelCase="gelu_new"			,     _lowerCAmelCase=0.1			,     _lowerCAmelCase=512			,     _lowerCAmelCase=4			,     _lowerCAmelCase=0.02			,     _lowerCAmelCase=1E-12			,     _lowerCAmelCase=False			,     _lowerCAmelCase=512			,     _lowerCAmelCase=3			,     _lowerCAmelCase=1			,     _lowerCAmelCase=2			,     **_lowerCAmelCase			,     )    ->							int:
     super().__init__(pad_token_id=_lowerCAmelCase			,     bos_token_id=_lowerCAmelCase			,     eos_token_id=_lowerCAmelCase			,     **_lowerCAmelCase		)

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









'''simple docstring'''


from __future__ import annotations


def 	__a(SCREAMING_SNAKE_CASE_  :					float		,       SCREAMING_SNAKE_CASE_  :					float		,       SCREAMING_SNAKE_CASE_  :					float    ):



    '''simple docstring'''





    if (voltage, current, resistance).count(0    ) != 1:
        raise ValueError("One and only one argument must be 0"    )
    if resistance < 0:
        raise ValueError("Resistance cannot be negative"    )
    if voltage == 0:
        return {"voltage": float(current * resistance    )}
    elif current == 0:
        return {"current": voltage / resistance}
    elif resistance == 0:
        return {"resistance": voltage / current}
    else:
        raise ValueError("Exactly one argument must be 0"    )


if __name__ == "__main__":
       import doctest

       doctest.testmod()


