





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


_lowerCAmelCase							:					List[Any]		    =		logging.get_logger(__name__)

_lowerCAmelCase							:					Optional[int]		    =		{
    """sayakpaul/vit-msn-base""": """https://huggingface.co/sayakpaul/vit-msn-base/resolve/main/config.json""",
    # See all ViT MSN models at https://huggingface.co/models?filter=vit_msn
}


class     __magic_name__     (							_lowerCamelCase							):





     """simple docstring"""



     __UpperCamelCase    			=   '''vit_msn'''



     def __init__(							self				:List[str]	,					snake_case				:Union[str, Any]=768	,					snake_case				:List[str]=12	,					snake_case				:Optional[Any]=12	,					snake_case				:List[Any]=3_072	,					snake_case				:str="gelu"	,					snake_case				:Any=0.0	,					snake_case				:Optional[Any]=0.0	,					snake_case				:List[str]=0.02	,					snake_case				:List[str]=1e-06	,					snake_case				:Tuple=224	,					snake_case				:int=16	,					snake_case				:Tuple=3	,					snake_case				:Union[str, Any]=True	,					**snake_case				:str	,					):





        '''simple docstring'''




        super().__init__(**a_     )

        A_    : Optional[int]								=	hidden_size
        A_    : Optional[int]								=	num_hidden_layers
        A_    : Any								=	num_attention_heads
        A_    : Tuple								=	intermediate_size
        A_    : Tuple								=	hidden_act
        A_    : Tuple								=	hidden_dropout_prob
        A_    : str								=	attention_probs_dropout_prob
        A_    : Optional[Any]								=	initializer_range
        A_    : Tuple								=	layer_norm_eps
        A_    : List[str]								=	image_size
        A_    : Any								=	patch_size
        A_    : str								=	num_channels
        A_    : Union[str, Any]								=	qkv_bias





'''simple docstring'''






import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin



class 							lowercase       (  unittest.TestCase					,					_lowerCamelCase				):


 """simple docstring"""


 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						int			     = load_tool("""text-classification"""							)
        self.tool.setup()
        _UpperCAmelCase  :						Tuple			     = load_tool("""text-classification"""  ,remote=a_							)







 def _snake_case (							self							)		->   Union[str, Any]:
        _UpperCAmelCase  :						Tuple			     = self.tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						Dict			     = self.remote_tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   str:
        _UpperCAmelCase  :						List[Any]			     = self.tool(text="""That's quite cool"""  ,labels=["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   Union[str, Any]:
        _UpperCAmelCase  :						Any			     = self.remote_tool(text="""That's quite cool"""  ,labels=["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)



