"""simple docstring"""






import numpy as np


def     UpperCAmelCase__ (       lowerCAmelCase__  :Tuple      ,	lowerCAmelCase__  :int      ,	lowerCAmelCase__  :str      ,	lowerCAmelCase__  :Optional[int]      ,	lowerCAmelCase__  :Any	)				->					Dict:
      '''simple docstring'''


      lowercase														=			int(np.ceil((x_end - xa) / h	)	)
      lowercase														=			np.zeros((n + 1,)	)
      lowercase														=			ya
      lowercase														=			xa

      for k in range(_SCREAMING_SNAKE_CASE	):
            lowercase														=			f(_SCREAMING_SNAKE_CASE      ,	y[k]	)
            lowercase														=			f(x + 0.5 * h      ,	y[k] + 0.5 * h * ka	)
            lowercase														=			f(x + 0.5 * h      ,	y[k] + 0.5 * h * ka	)
            lowercase														=			f(x + h      ,	y[k] + h * ka	)
            lowercase														=			y[k] + (1 / 6) * h * (ka + 2 * ka + 2 * ka + ka)
            x += h

      return y


if __name__ == "__main__":
       import doctest

       doctest.testmod()







"""simple docstring"""






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


__lowerCAmelCase					: Any        =logging.get_logger(__name__)

__lowerCAmelCase					: Union[str, Any]        ={
    """facebook/timesformer""": """https://huggingface.co/facebook/timesformer/resolve/main/config.json""",
}





class 				_A		( lowerCAmelCase			):
      snake_case__    :     Optional[Any]													=			'timesformer'

      def __init__(		self	, __lowerCAmelCase=224	, __lowerCAmelCase=16	, __lowerCAmelCase=3	, __lowerCAmelCase=8	, __lowerCAmelCase=768	, __lowerCAmelCase=12	, __lowerCAmelCase=12	, __lowerCAmelCase=3072	, __lowerCAmelCase="gelu"	, __lowerCAmelCase=0.0	, __lowerCAmelCase=0.0	, __lowerCAmelCase=0.0_2	, __lowerCAmelCase=1E-6	, __lowerCAmelCase=True	, __lowerCAmelCase="divided_space_time"	, __lowerCAmelCase=0	, **__lowerCAmelCase	, ):







            """simple docstring"""



            super().__init__(**__lowerCAmelCase		)

            lowercase														=			image_size
            lowercase														=			patch_size
            lowercase														=			num_channels
            lowercase														=			num_frames

            lowercase														=			hidden_size
            lowercase														=			num_hidden_layers
            lowercase														=			num_attention_heads
            lowercase														=			intermediate_size
            lowercase														=			hidden_act
            lowercase														=			hidden_dropout_prob
            lowercase														=			attention_probs_dropout_prob
            lowercase														=			initializer_range
            lowercase														=			layer_norm_eps
            lowercase														=			qkv_bias

            lowercase														=			attention_type
            lowercase														=			drop_path_rate



