



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


UpperCamelCase_										=					logging.get_logger(__name__)

UpperCamelCase_										=					{
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}







class 	_snake_case							(			__lowerCamelCase      ):






   '''simple docstring'''






   A__	:      Optional[int]    =		"""van"""


   def __init__(  self:			Tuple   ,lowerCamelCase_:			Any=224   ,lowerCamelCase_:			Dict=3   ,lowerCamelCase_:			Union[str, Any]=[7, 3, 3, 3]   ,lowerCamelCase_:			Union[str, Any]=[4, 2, 2, 2]   ,lowerCamelCase_:			Tuple=[64, 128, 320, 512]   ,lowerCamelCase_:			int=[3, 3, 12, 3]   ,lowerCamelCase_:			List[str]=[8, 8, 4, 4]   ,lowerCamelCase_:			str="gelu"   ,lowerCamelCase_:			Any=0.0_2   ,lowerCamelCase_:			str=1e-6   ,lowerCamelCase_:			int=1e-2   ,lowerCamelCase_:			Optional[int]=0.0   ,lowerCamelCase_:			Any=0.0   ,**lowerCamelCase_:			Optional[int]   ,)     ->	List[Any]:
       super().__init__(**__lowercase				)
       UpperCAmelCase_			:    Optional[Any]   						= image_size
       UpperCAmelCase_			:    Union[str, Any]   						= num_channels
       UpperCAmelCase_			:    Dict   						= patch_sizes
       UpperCAmelCase_			:    Any   						= strides
       UpperCAmelCase_			:    Tuple   						= hidden_sizes
       UpperCAmelCase_			:    Optional[int]   						= depths
       UpperCAmelCase_			:    List[Any]   						= mlp_ratios
       UpperCAmelCase_			:    Dict   						= hidden_act
       UpperCAmelCase_			:    Optional[Any]   						= initializer_range
       UpperCAmelCase_			:    Any   						= layer_norm_eps
       UpperCAmelCase_			:    Union[str, Any]   						= layer_scale_init_value
       UpperCAmelCase_			:    int   						= drop_path_rate
       UpperCAmelCase_			:    Optional[int]   						= dropout_rate





def 			_lowerCAmelCase       (					__lowerCAmelCase  ,  __lowerCAmelCase      )   ->					int:


				"""simple docstring"""

				return int((input_a, input_a).count(1      ) != 0      )



def 			_lowerCAmelCase       (					)   ->					None:


				"""simple docstring"""

				assert or_gate(0  ,  0      ) == 0
				assert or_gate(0  ,  1      ) == 1
				assert or_gate(1  ,  0      ) == 1
				assert or_gate(1  ,  1      ) == 1


if __name__ == "__main__":
				print(or_gate(0, 1))
				print(or_gate(1, 0))
				print(or_gate(0, 0))
				print(or_gate(1, 1))

