


from ..utils import DummyObject, requires_backends




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Any =['sentencepiece']






      def __init__(   self		:	int     ,  *lowercase_		:	int     ,  **lowercase_		:	Dict					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	List[str]     ,  **lowercase_		:	List[str]					)   ->		Any:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[Any] =['sentencepiece']






      def __init__(   self		:	Dict     ,  *lowercase_		:	Dict     ,  **lowercase_		:	List[str]					)   ->		List[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    str =['sentencepiece']






      def __init__(   self		:	Optional[int]     ,  *lowercase_		:	Tuple     ,  **lowercase_		:	Tuple					)   ->		int:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Dict =['sentencepiece']






      def __init__(   self		:	List[Any]     ,  *lowercase_		:	int     ,  **lowercase_		:	List[Any]					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[str] =['sentencepiece']






      def __init__(   self		:	List[str]     ,  *lowercase_		:	str     ,  **lowercase_		:	List[Any]					)   ->		Any:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[Any] =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	Optional[int]     ,  **lowercase_		:	Optional[Any]					)   ->		Union[str, Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Tuple =['sentencepiece']






      def __init__(   self		:	int     ,  *lowercase_		:	int     ,  **lowercase_		:	List[str]					)   ->		Any:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[str] =['sentencepiece']






      def __init__(   self		:	Optional[Any]     ,  *lowercase_		:	Any     ,  **lowercase_		:	List[str]					)   ->		Optional[int]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    str =['sentencepiece']






      def __init__(   self		:	List[Any]     ,  *lowercase_		:	Dict     ,  **lowercase_		:	List[str]					)   ->		Optional[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Tuple =['sentencepiece']






      def __init__(   self		:	Optional[int]     ,  *lowercase_		:	Tuple     ,  **lowercase_		:	List[Any]					)   ->		Union[str, Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    int =['sentencepiece']






      def __init__(   self		:	Dict     ,  *lowercase_		:	Any     ,  **lowercase_		:	List[str]					)   ->		Tuple:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Tuple =['sentencepiece']






      def __init__(   self		:	List[Any]     ,  *lowercase_		:	Union[str, Any]     ,  **lowercase_		:	int					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	Optional[int]     ,  **lowercase_		:	Tuple					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Any =['sentencepiece']






      def __init__(   self		:	Tuple     ,  *lowercase_		:	List[str]     ,  **lowercase_		:	str					)   ->		Union[str, Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[Any] =['sentencepiece']






      def __init__(   self		:	Tuple     ,  *lowercase_		:	Optional[int]     ,  **lowercase_		:	Tuple					)   ->		Union[str, Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Union[str, Any]     ,  *lowercase_		:	Tuple     ,  **lowercase_		:	List[Any]					)   ->		str:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Optional[int]     ,  *lowercase_		:	str     ,  **lowercase_		:	List[str]					)   ->		List[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[Any] =['sentencepiece']






      def __init__(   self		:	str     ,  *lowercase_		:	int     ,  **lowercase_		:	Optional[Any]					)   ->		Union[str, Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Any =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	str     ,  **lowercase_		:	List[str]					)   ->		Optional[int]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[str] =['sentencepiece']






      def __init__(   self		:	List[str]     ,  *lowercase_		:	Any     ,  **lowercase_		:	Optional[int]					)   ->		str:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Union[str, Any]     ,  *lowercase_		:	str     ,  **lowercase_		:	Any					)   ->		Tuple:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Tuple =['sentencepiece']






      def __init__(   self		:	Optional[Any]     ,  *lowercase_		:	List[Any]     ,  **lowercase_		:	str					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    List[str] =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	Optional[int]     ,  **lowercase_		:	Any					)   ->		Optional[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Tuple =['sentencepiece']






      def __init__(   self		:	Union[str, Any]     ,  *lowercase_		:	List[Any]     ,  **lowercase_		:	Union[str, Any]					)   ->		Dict:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[Any] =['sentencepiece']






      def __init__(   self		:	Optional[Any]     ,  *lowercase_		:	List[str]     ,  **lowercase_		:	Any					)   ->		Tuple:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	Any     ,  **lowercase_		:	Optional[Any]					)   ->		Tuple:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    str =['sentencepiece']






      def __init__(   self		:	Any     ,  *lowercase_		:	Optional[Any]     ,  **lowercase_		:	int					)   ->		List[str]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Optional[int] =['sentencepiece']






      def __init__(   self		:	Optional[int]     ,  *lowercase_		:	Any     ,  **lowercase_		:	List[Any]					)   ->		Any:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Any =['sentencepiece']






      def __init__(   self		:	List[Any]     ,  *lowercase_		:	Union[str, Any]     ,  **lowercase_		:	List[str]					)   ->		List[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)




class A    (  metaclass=UpperCamelCase_	):
      UpperCamelCase__				:    Any =['sentencepiece']






      def __init__(   self		:	List[str]     ,  *lowercase_		:	Optional[Any]     ,  **lowercase_		:	int					)   ->		List[Any]:
             """simple docstring"""




             requires_backends(self     ,  ['sentencepiece']					)






from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


lowerCamelCase		   =			logging.get_logger(__name__)

lowerCamelCase		   =			{
    'microsoft/focalnet-tiny': 'https://huggingface.co/microsoft/focalnet-tiny/resolve/main/config.json',
}




class A    (  UpperCamelCase_       ,				UpperCamelCase_	):
      UpperCamelCase__				:    str ='focalnet'






      def __init__(   self		:	Optional[int]     ,  lowercase_		:	List[Any]=224     ,  lowercase_		:	str=4     ,  lowercase_		:	Any=3     ,  lowercase_		:	Dict=96     ,  lowercase_		:	List[str]=False     ,  lowercase_		:	Any=[192, 384, 768, 768]     ,  lowercase_		:	Dict=[2, 2, 6, 2]     ,  lowercase_		:	Optional[int]=[2, 2, 2, 2]     ,  lowercase_		:	List[Any]=[3, 3, 3, 3]     ,  lowercase_		:	Any="gelu"     ,  lowercase_		:	str=4.0     ,  lowercase_		:	List[Any]=0.0     ,  lowercase_		:	Tuple=0.1     ,  lowercase_		:	Optional[Any]=False     ,  lowercase_		:	Optional[int]=1E-4     ,  lowercase_		:	Dict=False     ,  lowercase_		:	Optional[Any]=False     ,  lowercase_		:	Dict=False     ,  lowercase_		:	List[Any]=0.02     ,  lowercase_		:	Any=1E-5     ,  lowercase_		:	Any=32     ,  lowercase_		:	List[str]=None     ,  lowercase_		:	int=None     ,  **lowercase_		:	Optional[Any]     ,  )   ->		Optional[Any]:
             """simple docstring"""




             super().__init__(**lowercase_					)

             _lowerCamelCase			:						Union[str, Any]            =image_size
             _lowerCamelCase			:						str            =patch_size
             _lowerCamelCase			:						str            =num_channels
             _lowerCamelCase			:						Tuple            =embed_dim
             _lowerCamelCase			:						Dict            =use_conv_embed
             _lowerCamelCase			:						int            =hidden_sizes
             _lowerCamelCase			:						str            =depths
             _lowerCamelCase			:						int            =focal_levels
             _lowerCamelCase			:						List[Any]            =focal_windows
             _lowerCamelCase			:						List[Any]            =hidden_act
             _lowerCamelCase			:						int            =mlp_ratio
             _lowerCamelCase			:						Any            =hidden_dropout_prob
             _lowerCamelCase			:						Optional[Any]            =drop_path_rate
             _lowerCamelCase			:						int            =use_layerscale
             _lowerCamelCase			:						str            =layerscale_value
             _lowerCamelCase			:						Dict            =use_post_layernorm
             _lowerCamelCase			:						str            =use_post_layernorm_in_modulation
             _lowerCamelCase			:						List[Any]            =normalize_modulator
             _lowerCamelCase			:						Optional[Any]            =initializer_range
             _lowerCamelCase			:						List[str]            =layer_norm_eps
             _lowerCamelCase			:						Optional[int]            =encoder_stride
             _lowerCamelCase			:						List[str]            =['stem'] + [F'''stage{idx}''' for idx in range(1     ,  len(self.depths					) + 1					)]
             _lowerCamelCase      ,	_lowerCamelCase			:						Union[str, Any]            =get_aligned_output_features_output_indices(
                 out_features=lowercase_     ,  out_indices=lowercase_     ,  stage_names=self.stage_names					)


