




from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


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

_lowerCamelCase	:		str							       =   {
    """hustvl/yolos-small""": """https://huggingface.co/hustvl/yolos-small/resolve/main/config.json""",
    # See all YOLOS models at https://huggingface.co/models?filter=yolos
}


class 				UpperCamelCase_    ( UpperCAmelCase__     ):

    '''simple docstring'''






    UpperCAmelCase__							  =      '''yolos'''


    def __init__(			self      :	Any					, UpperCAmelCase__      :	Tuple=768					, UpperCAmelCase__      :	Optional[Any]=12					, UpperCAmelCase__      :	List[str]=12					, UpperCAmelCase__      :	Optional[int]=3_072					, UpperCAmelCase__      :	Any="gelu"					, UpperCAmelCase__      :	Tuple=0.0					, UpperCAmelCase__      :	int=0.0					, UpperCAmelCase__      :	str=0.02					, UpperCAmelCase__      :	Dict=1e-12					, UpperCAmelCase__      :	List[str]=[512, 864]					, UpperCAmelCase__      :	Dict=16					, UpperCAmelCase__      :	Any=3					, UpperCAmelCase__      :	str=True					, UpperCAmelCase__      :	Optional[Any]=100					, UpperCAmelCase__      :	List[Any]=True					, UpperCAmelCase__      :	Dict=False					, UpperCAmelCase__      :	List[Any]=1					, UpperCAmelCase__      :	Optional[Any]=5					, UpperCAmelCase__      :	List[Any]=2					, UpperCAmelCase__      :	Tuple=5					, UpperCAmelCase__      :	Tuple=2					, UpperCAmelCase__      :	Optional[Any]=0.1					, **UpperCAmelCase__      :	int					, )						->List[str]:





           '''simple docstring'''

           super().__init__(**UpperCAmelCase__)

           A__       =    hidden_size
           A__       =    num_hidden_layers
           A__       =    num_attention_heads
           A__       =    intermediate_size
           A__       =    hidden_act
           A__       =    hidden_dropout_prob
           A__       =    attention_probs_dropout_prob
           A__       =    initializer_range
           A__       =    layer_norm_eps
           A__       =    image_size
           A__       =    patch_size
           A__       =    num_channels
           A__       =    qkv_bias
           A__       =    num_detection_tokens
           A__       =    use_mid_position_embeddings
           A__       =    auxiliary_loss
           # Hungarian matcher
           A__       =    class_cost
           A__       =    bbox_cost
           A__       =    giou_cost
           # Loss coefficients
           A__       =    bbox_loss_coefficient
           A__       =    giou_loss_coefficient
           A__       =    eos_coefficient


class 				UpperCamelCase_    ( UpperCAmelCase__     ):

    '''simple docstring'''






    UpperCAmelCase__							  =      version.parse('''1.11'''     )


    @property
    def        SCREAMING_SNAKE_CASE							(			self      :	str)						->Mapping[str, Mapping[int, str]]:





           '''simple docstring'''

           return OrderedDict(
               [
                   ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
               ])


    @property
    def        SCREAMING_SNAKE_CASE							(			self      :	Union[str, Any])						->float:





           '''simple docstring'''

           return 1e-4





    @property
    def        SCREAMING_SNAKE_CASE							(			self      :	Optional[int])						->int:





           '''simple docstring'''

           return 12








def SCREAMING_SNAKE_CASE				(       lowercase_ ,				lowercase_						)   ->       int:



       """simple docstring"""

       return int(input_a == input_a == 0						)







def SCREAMING_SNAKE_CASE				(       )   ->       None:



       """simple docstring"""

       print('''Truth Table of NOR Gate:'''						)
       print('''|   Input 1   |  Input 2  | Output |'''						)
       print(f"""|      0      |    0      |  {nor_gate(0 ,				0						)}     |"""						)
       print(f"""|      0      |    1      |  {nor_gate(0 ,				1						)}     |"""						)
       print(f"""|      1      |    0      |  {nor_gate(1 ,				0						)}     |"""						)
       print(f"""|      1      |    1      |  {nor_gate(1 ,				1						)}     |"""						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()


