




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


snake_case_  :      Dict		=		logging.get_logger(__name__)

snake_case_  :      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 					snake_case_   (     a_	):



				'''simple docstring'''
				lowerCamelCase       =  "cvt"





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





# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import argparse

from .config import config_command_parser
from .config_args import default_config_file, load_config_from_file  # noqa: F401
from .default import default_command_parser
from .update import update_command_parser






def 	__lowerCamelCase						(							lowerCamelCase__		:						Any=None      ):





			'''simple docstring'''




			lowerCamelCase    		=  argparse.ArgumentParser(add_help=lowerCamelCase__  ,							allow_abbrev=lowerCamelCase__      )
			# The main config parser
			lowerCamelCase    		=  config_command_parser(lowerCamelCase__      )
			# The subparser to add commands to
			lowerCamelCase    		=  config_parser.add_subparsers(title="""subcommands"""  ,							dest="""subcommand"""      )

			# Then add other parsers with the parent parser
			default_command_parser(lowerCamelCase__  ,							parents=[parent_parser]      )
			update_command_parser(lowerCamelCase__  ,							parents=[parent_parser]      )

			return config_parser






def 	__lowerCamelCase						(							):





			'''simple docstring'''




			lowerCamelCase    		=  get_config_parser()
			lowerCamelCase    		=  config_parser.parse_args()

			if not hasattr(lowerCamelCase__  ,							"""func"""      ):
						config_parser.print_help()
						exit(1      )

			# Run
			args.func(lowerCamelCase__      )


if __name__ == "__main__":
		main()

