"""simple docstring"""





from math import factorial





def 							a_	( _lowerCAmelCase    :					str  ,					_lowerCAmelCase    :					Any	):





       '''simple docstring'''

       if n < k or k < 0:
              raise ValueError('Please enter positive integers for n and k where n >= k'	)
       return factorial(_lowerCAmelCase	) // (factorial(_lowerCAmelCase	) * factorial(n - k	))


if __name__ == "__main__":
       print(
           "The number of five-card hands possible from a standard",
           f'''fifty-two card deck is: {combinations(52, 5)}\n''',
       )

       print(
           "If a class of 40 students must be arranged into groups of",
           f'''4 for group projects, there are {combinations(40, 4)} ways''',
           "to arrange them.\n",
       )

       print(
           "If 10 teams are competing in a Formula One race, there",
           f'''are {combinations(10, 3)} ways that first, second and''',
           "third place can be awarded.",
       )


"""simple docstring"""


from collections import OrderedDict
from typing import List, Mapping

from packaging import version

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


UpperCAmelCase__			=    logging.get_logger(__name__)

UpperCAmelCase__			=    {
    """google/efficientnet-b7""": """https://huggingface.co/google/efficientnet-b7/resolve/main/config.json""",
}


class 							a					(		lowerCAmelCase_ ):
    _snake_case  :	Tuple  				=				'efficientnet'


    def __init__(       self						:	int ,					__lowerCAmelCase						:	int = 3 ,					__lowerCAmelCase						:	int = 600 ,					__lowerCAmelCase						:	float = 2.0 ,					__lowerCAmelCase						:	float = 3.1 ,					__lowerCAmelCase						:	int = 8 ,					__lowerCAmelCase						:	List[int] = [3, 3, 5, 3, 5, 5, 3] ,					__lowerCAmelCase						:	List[int] = [32, 16, 24, 40, 80, 112, 192] ,					__lowerCAmelCase						:	List[int] = [16, 24, 40, 80, 112, 192, 320] ,					__lowerCAmelCase						:	List[int] = [] ,					__lowerCAmelCase						:	List[int] = [1, 2, 2, 2, 1, 2, 1] ,					__lowerCAmelCase						:	List[int] = [1, 2, 2, 3, 3, 4, 1] ,					__lowerCAmelCase						:	List[int] = [1, 6, 6, 6, 6, 6, 6] ,					__lowerCAmelCase						:	float = 0.25 ,					__lowerCAmelCase						:	str = "swish" ,					__lowerCAmelCase						:	int = 2560 ,					__lowerCAmelCase						:	str = "mean" ,					__lowerCAmelCase						:	float = 0.02 ,					__lowerCAmelCase						:	float = 0.001 ,					__lowerCAmelCase						:	float = 0.99 ,					__lowerCAmelCase						:	float = 0.5 ,					__lowerCAmelCase						:	float = 0.2 ,					**__lowerCAmelCase						:	Optional[Any] ,					):
      super().__init__(**__lowerCAmelCase       )

      _UpperCAmelCase    			=   num_channels
      _UpperCAmelCase    			=   image_size
      _UpperCAmelCase    			=   width_coefficient
      _UpperCAmelCase    			=   depth_coefficient
      _UpperCAmelCase    			=   depth_divisor
      _UpperCAmelCase    			=   kernel_sizes
      _UpperCAmelCase    			=   in_channels
      _UpperCAmelCase    			=   out_channels
      _UpperCAmelCase    			=   depthwise_padding
      _UpperCAmelCase    			=   strides
      _UpperCAmelCase    			=   num_block_repeats
      _UpperCAmelCase    			=   expand_ratios
      _UpperCAmelCase    			=   squeeze_expansion_ratio
      _UpperCAmelCase    			=   hidden_act
      _UpperCAmelCase    			=   hidden_dim
      _UpperCAmelCase    			=   pooling_type
      _UpperCAmelCase    			=   initializer_range
      _UpperCAmelCase    			=   batch_norm_eps
      _UpperCAmelCase    			=   batch_norm_momentum
      _UpperCAmelCase    			=   dropout_rate
      _UpperCAmelCase    			=   drop_connect_rate
      _UpperCAmelCase    			=   sum(__lowerCAmelCase       ) * 4



class 							a					(		lowerCAmelCase_ ):
    _snake_case  :	Union[str, Any]  				=				version.parse('1.11' )


    @property
    def   lowerCAmelCase_	(       self						:	Any       ):
      return OrderedDict(
          [
              ("""pixel_values""", {0: """batch""", 1: """num_channels""", 2: """height""", 3: """width"""}),
          ]       )


    @property
    def   lowerCAmelCase_	(       self						:	List[Any]       ):
      return 1e-5
