


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


_snake_case	:						Tuple         =							logging.get_logger(__name__)

_snake_case	:						List[Any]         =							{
    "microsoft/cvt-13": "https://huggingface.co/microsoft/cvt-13/resolve/main/config.json",
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}

class 							a						(_lowerCAmelCase ):




							"""simple docstring"""


							__UpperCAmelCase       :				List[Any]	    =    "cvt"

							def __init__(				self			:    Optional[int]       ,      lowerCamelCase			:    Union[str, Any]=3       ,      lowerCamelCase			:    Any=[7, 3, 3]       ,      lowerCamelCase			:    str=[4, 2, 2]       ,      lowerCamelCase			:    List[str]=[2, 1, 1]       ,      lowerCamelCase			:    List[Any]=[64, 192, 384]       ,      lowerCamelCase			:    List[str]=[1, 3, 6]       ,      lowerCamelCase			:    Dict=[1, 2, 10]       ,      lowerCamelCase			:    Any=[4.0, 4.0, 4.0]       ,      lowerCamelCase			:    List[Any]=[0.0, 0.0, 0.0]       ,      lowerCamelCase			:    Any=[0.0, 0.0, 0.0]       ,      lowerCamelCase			:    List[Any]=[0.0, 0.0, 0.1]       ,      lowerCamelCase			:    Tuple=[True, True, True]       ,      lowerCamelCase			:    Tuple=[False, False, True]       ,      lowerCamelCase			:    Tuple=["dw_bn", "dw_bn", "dw_bn"]       ,      lowerCamelCase			:    Dict=[3, 3, 3]       ,      lowerCamelCase			:    Dict=[1, 1, 1]       ,      lowerCamelCase			:    str=[2, 2, 2]       ,      lowerCamelCase			:    Union[str, Any]=[1, 1, 1]       ,      lowerCamelCase			:    List[str]=[1, 1, 1]       ,      lowerCamelCase			:    Dict=0.02       ,      lowerCamelCase			:    Optional[int]=1E-12       ,      **lowerCamelCase			:    Union[str, Any]       ,      )      ->       Optional[int]:
														super().__init__(**lowerCamelCase							)
														__snake_case						:     Dict									=  num_channels
														__snake_case						:     Any									=  patch_sizes
														__snake_case						:     Dict									=  patch_stride
														__snake_case						:     Dict									=  patch_padding
														__snake_case						:     Any									=  embed_dim
														__snake_case						:     Union[str, Any]									=  num_heads
														__snake_case						:     List[str]									=  depth
														__snake_case						:     str									=  mlp_ratio
														__snake_case						:     Union[str, Any]									=  attention_drop_rate
														__snake_case						:     Optional[Any]									=  drop_rate
														__snake_case						:     Tuple									=  drop_path_rate
														__snake_case						:     List[Any]									=  qkv_bias
														__snake_case						:     List[Any]									=  cls_token
														__snake_case						:     int									=  qkv_projection_method
														__snake_case						:     str									=  kernel_qkv
														__snake_case						:     Dict									=  padding_kv
														__snake_case						:     List[str]									=  stride_kv
														__snake_case						:     int									=  padding_q
														__snake_case						:     str									=  stride_q
														__snake_case						:     int									=  initializer_range
														__snake_case						:     Optional[int]									=  layer_norm_eps





"""simple docstring"""






from collections.abc import Callable

import numpy as np





def 				A_       ( snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__		)					->  np.ndarray:
			_UpperCamelCase					:str					     =	int(np.ceil((x_end - xa) / step_size		)		)
			_UpperCamelCase					:Union[str, Any]					     =	np.zeros((n + 1,)		)
			_UpperCamelCase					:List[str]					     =	ya
			_UpperCamelCase					:Any					     =	xa

			for k in range(snake_case__		):
						_UpperCamelCase					:Union[str, Any]					     =	y[k] + step_size * ode_func(snake_case__       ,					y[k]		)
						x += step_size

			return y


if __name__ == "__main__":
					import doctest

					doctest.testmod()

