

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


lowerCAmelCase     :   int								=  logging.get_logger(__name__)

lowerCAmelCase     :   List[Any]								=  {
    'google/vivit-b-16x2-kinetics400': (
        'https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json'
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}
class  _A		(  __magic_name__):
  SCREAMING_SNAKE_CASE    :      List[Any]       =  '''vivit'''

  def __init__(				self ,					_SCREAMING_SNAKE_CASE=224 ,					_SCREAMING_SNAKE_CASE=32 ,					_SCREAMING_SNAKE_CASE=[2, 16, 16] ,					_SCREAMING_SNAKE_CASE=3 ,					_SCREAMING_SNAKE_CASE=768 ,					_SCREAMING_SNAKE_CASE=12 ,					_SCREAMING_SNAKE_CASE=12 ,					_SCREAMING_SNAKE_CASE=3072 ,					_SCREAMING_SNAKE_CASE="gelu_fast" ,					_SCREAMING_SNAKE_CASE=0.0 ,					_SCREAMING_SNAKE_CASE=0.0 ,					_SCREAMING_SNAKE_CASE=0.02 ,					_SCREAMING_SNAKE_CASE=1e-06 ,					_SCREAMING_SNAKE_CASE=True ,					**_SCREAMING_SNAKE_CASE ,					):





        """simple docstring"""







        SCREAMING_SNAKE_CASE_				:  Dict           =     hidden_size
        SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     num_hidden_layers
        SCREAMING_SNAKE_CASE_				:  Union[str, Any]           =     num_attention_heads
        SCREAMING_SNAKE_CASE_				:  Optional[int]           =     intermediate_size
        SCREAMING_SNAKE_CASE_				:  Dict           =     hidden_act
        SCREAMING_SNAKE_CASE_				:  str           =     hidden_dropout_prob
        SCREAMING_SNAKE_CASE_				:  Union[str, Any]           =     attention_probs_dropout_prob
        SCREAMING_SNAKE_CASE_				:  int           =     initializer_range
        SCREAMING_SNAKE_CASE_				:  Union[str, Any]           =     layer_norm_eps

        SCREAMING_SNAKE_CASE_				:  Dict           =     image_size
        SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     num_frames
        SCREAMING_SNAKE_CASE_				:  Tuple           =     tubelet_size
        SCREAMING_SNAKE_CASE_				:  Tuple           =     num_channels
        SCREAMING_SNAKE_CASE_				:  Union[str, Any]           =     qkv_bias

        super().__init__(**_SCREAMING_SNAKE_CASE					)









from __future__ import annotations

import math

lowerCAmelCase     :   List[str]						     =  '2020.9.26'
lowerCAmelCase     :   List[Any]						     =  'xcodz-dot, cclaus, dhruvmanila'

def    A_  (							a					,   a					,   a					,   a					,   a  ):

      """simple docstring"""



      if not all(isinstance(a					,   (float, int)  ) for val in locals().values()  ):
            SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     f"Input values must either be float or int: {list(locals().values()  )}"
            raise TypeError(a  )
      SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     ((x * distance) / (z + distance)) * scale
      SCREAMING_SNAKE_CASE_				:  int           =     ((y * distance) / (z + distance)) * scale
      return projected_x, projected_y

def    A_  (							a					,   a					,   a					,   a					,   a  ):

      """simple docstring"""



      if not isinstance(a					,   a  ):
            raise TypeError('Axis must be a str'  )
      SCREAMING_SNAKE_CASE_				:  Any           =     locals()
      del input_variables["axis"]
      if not all(isinstance(a					,   (float, int)  ) for val in input_variables.values()  ):
            SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     (
                'Input values except axis must either be float or int: '
                f"{list(input_variables.values()  )}"
            )
            raise TypeError(a  )
      SCREAMING_SNAKE_CASE_				:  List[Any]           =     (angle % 3_6_0) / 4_5_0 * 1_8_0 / math.pi
      if axis == "z":
            SCREAMING_SNAKE_CASE_				:  List[str]           =     x * math.cos(a  ) - y * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  List[Any]           =     y * math.cos(a  ) + x * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  Dict           =     z
      elif axis == "x":
            SCREAMING_SNAKE_CASE_				:  Any           =     y * math.cos(a  ) - z * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  Optional[Any]           =     z * math.cos(a  ) + y * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  str           =     x
      elif axis == "y":
            SCREAMING_SNAKE_CASE_				:  str           =     x * math.cos(a  ) - z * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  List[str]           =     z * math.cos(a  ) + x * math.sin(a  )
            SCREAMING_SNAKE_CASE_				:  Any           =     y
      else:
            raise ValueError('not a valid axis, choose one of \'x\', \'y\', \'z\''  )

      return new_x, new_y, new_z


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    print(F'{convert_to_ad(1.0, 2.0, 3.0, 10.0, 10.0) = }')
    print(F'{rotate(1.0, 2.0, 3.0, "y", 90.0) = }')






