


from math import asin, atan, cos, radians, sin, sqrt, tan

_SCREAMING_SNAKE_CASE      :			Optional[int]      				=   6378137.0
_SCREAMING_SNAKE_CASE      :			Dict      				=   6356752.314245
_SCREAMING_SNAKE_CASE      :			Optional[int]      				=   6_37_81_37
def       UpperCAmelCase__						(UpperCamelCase_							,UpperCamelCase_							,UpperCamelCase_							,UpperCamelCase_    ):



     """simple docstring"""






     snake_case					=    (AXIS_A - AXIS_B) / AXIS_A
     snake_case					=    atan((1 - flattening) * tan(radians(UpperCamelCase_    )    )    )
     snake_case					=    atan((1 - flattening) * tan(radians(UpperCamelCase_    )    )    )
     snake_case					=    radians(UpperCamelCase_    )
     snake_case					=    radians(UpperCamelCase_    )
     # Equation
     snake_case					=    sin((phi_a - phi_a) / 2    )
     snake_case					=    sin((lambda_a - lambda_a) / 2    )
     # Square both values
     sin_sq_phi *= sin_sq_phi
     sin_sq_lambda *= sin_sq_lambda
     snake_case					=    sqrt(sin_sq_phi + (cos(UpperCamelCase_    ) * cos(UpperCamelCase_    ) * sin_sq_lambda)    )
     return 2 * RADIUS * asin(UpperCamelCase_    )


if __name__ == "__main__":
 import doctest

 doctest.testmod()








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


_SCREAMING_SNAKE_CASE      :			List[str]      				=   logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE      :			Optional[int]      				=   {
    "google/efficientnet-b7": "https://huggingface.co/google/efficientnet-b7/resolve/main/config.json",
}

class   A__ (   snake_case__     ):







    """simple docstring"""

    __magic_name__        =		'efficientnet'
    def __init__(	self      , __snake_case = 3      , __snake_case = 6_0_0      , __snake_case = 2.0      , __snake_case = 3.1      , __snake_case = 8      , __snake_case = [3, 3, 5, 3, 5, 5, 3]      , __snake_case = [3_2, 1_6, 2_4, 4_0, 8_0, 1_1_2, 1_9_2]      , __snake_case = [1_6, 2_4, 4_0, 8_0, 1_1_2, 1_9_2, 3_2_0]      , __snake_case = []      , __snake_case = [1, 2, 2, 2, 1, 2, 1]      , __snake_case = [1, 2, 2, 3, 3, 4, 1]      , __snake_case = [1, 6, 6, 6, 6, 6, 6]      , __snake_case = 0.25      , __snake_case = "swish"      , __snake_case = 2_5_6_0      , __snake_case = "mean"      , __snake_case = 0.02      , __snake_case = 0.001      , __snake_case = 0.99      , __snake_case = 0.5      , __snake_case = 0.2      , **__snake_case      , ):
         super().__init__(**__snake_case   )

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






class   A__ (   snake_case__     ):







    """simple docstring"""

    __magic_name__        =		version.parse('1.11'     )
    @property
    def 		a_      (	self   ):
         return OrderedDict(
             [
                 ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
             ]   )




    @property
    def 		a_      (	self   ):
         return 1E-5




