

"""simple docstring"""




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


__UpperCAmelCase			=					logging.get_logger(__name__)

__UpperCAmelCase			=					{
    '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   __lowercase      (     __lowerCamelCase       ):
  snake_case_												=							"""fnet"""

  def __init__(	self		:      Optional[Any]       ,A		:      Tuple=32_000       ,A		:      str=768       ,A		:      List[str]=12       ,A		:      List[Any]=3_072       ,A		:      Optional[Any]="gelu_new"       ,A		:      Tuple=0.1       ,A		:      List[str]=512       ,A		:      Any=4       ,A		:      Optional[int]=0.0_2       ,A		:      Optional[int]=1e-12       ,A		:      List[Any]=False       ,A		:      str=512       ,A		:      List[Any]=3       ,A		:      int=1       ,A		:      List[str]=2       ,**A		:      Optional[Any]       ,):






   '''simple docstring'''
   super().__init__(pad_token_id=A       ,bos_token_id=A       ,eos_token_id=A       ,**A     )

   UpperCAmelCase__       :	str        =       vocab_size
   UpperCAmelCase__       :	Optional[Any]        =       max_position_embeddings
   UpperCAmelCase__       :	Optional[Any]        =       hidden_size
   UpperCAmelCase__       :	List[str]        =       num_hidden_layers
   UpperCAmelCase__       :	Optional[int]        =       intermediate_size
   UpperCAmelCase__       :	Union[str, Any]        =       hidden_act
   UpperCAmelCase__       :	Dict        =       hidden_dropout_prob
   UpperCAmelCase__       :	Optional[int]        =       initializer_range
   UpperCAmelCase__       :	Dict        =       type_vocab_size
   UpperCAmelCase__       :	Any        =       layer_norm_eps
   UpperCAmelCase__       :	Optional[int]        =       use_tpu_fourier_optimizations
   UpperCAmelCase__       :	Optional[Any]        =       tpu_short_seq_length













'''simple docstring'''







# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
__lowerCAmelCase        =							abspath(join(dirname(dirname(dirname(__file__))), "src"))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action="ignore", category=FutureWarning)


def       __UpperCamelCase					(      lowercase_       :  Dict   ):
       """simple docstring"""




       from transformers.testing_utils import pytest_addoption_shared

       pytest_addoption_shared(lowercase_   )


def       __UpperCamelCase					(      lowercase_       :  List[Any]   ):
       """simple docstring"""




       from transformers.testing_utils import pytest_terminal_summary_main

       a_						     =			terminalreporter.config.getoption('--make-reports'   )
       if make_reports:
              pytest_terminal_summary_main(lowercase_   ,       id=lowercase_   )




