



"""simple docstring"""


__A   :							List[str]										=   "\n# Transformers 설치 방법\n! pip install transformers datasets\n# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

__A   :							Tuple										=   [{"type": "code", "content": INSTALL_CONTENT}]
__A   :							Union[str, Any]										=   {
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}








"""simple docstring"""


from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


__A   :							Optional[int]										=   logging.get_logger(__name__)

__A   :							Optional[Any]										=   {
    "google/bit-50": "https://huggingface.co/google/bit-50/resolve/main/config.json",
}
class 			_a (					lowerCAmelCase			,							lowerCAmelCase):
			"""simple docstring"""
			UpperCamelCase__			      =	"""bit"""
			UpperCamelCase__			      =	["""preactivation""", """bottleneck"""]
			UpperCamelCase__			      =	["""SAME""", """VALID"""]



			def __init__(		self     :    List[Any]				,   __UpperCamelCase     :    Optional[int]=3				,   __UpperCamelCase     :    Optional[int]=6_4				,   __UpperCamelCase     :    List[Any]=[2_5_6, 5_1_2, 1_0_2_4, 2_0_4_8]				,   __UpperCamelCase     :    Any=[3, 4, 6, 3]				,   __UpperCamelCase     :    str="preactivation"				,   __UpperCamelCase     :    Union[str, Any]="relu"				,   __UpperCamelCase     :    str=None				,   __UpperCamelCase     :    Dict=3_2				,   __UpperCamelCase     :    List[str]=0.0				,   __UpperCamelCase     :    Any=False				,   __UpperCamelCase     :    Union[str, Any]=3_2				,   __UpperCamelCase     :    List[str]=1				,   __UpperCamelCase     :    List[str]=None				,   __UpperCamelCase     :    Optional[Any]=None				,   **__UpperCamelCase     :    List[str]				,   )->List[Any]:
							super().__init__(**__UpperCamelCase   )
							if layer_type not in self.layer_types:
											raise ValueError(F'layer_type={layer_type} is not one of {",".join(self.layer_types   )}'   )
							if global_padding is not None:
											if global_padding.upper() in self.supported_padding:
															_UpperCAmelCase					=    global_padding.upper()
											else:
															raise ValueError(F'Padding strategy {global_padding} not supported'   )
							_UpperCAmelCase					=    num_channels
							_UpperCAmelCase					=    embedding_size
							_UpperCAmelCase					=    hidden_sizes
							_UpperCAmelCase					=    depths
							_UpperCAmelCase					=    layer_type
							_UpperCAmelCase					=    hidden_act
							_UpperCAmelCase					=    global_padding
							_UpperCAmelCase					=    num_groups
							_UpperCAmelCase					=    drop_path_rate
							_UpperCAmelCase					=    embedding_dynamic_padding
							_UpperCAmelCase					=    output_stride
							_UpperCAmelCase					=    width_factor

							_UpperCAmelCase					=    ['''stem'''] + [F'stage{idx}' for idx in range(1				,   len(__UpperCamelCase   ) + 1   )]
							_UpperCAmelCase		,						_UpperCAmelCase					=    get_aligned_output_features_output_indices(
							    out_features=__UpperCamelCase				,   out_indices=__UpperCamelCase				,   stage_names=self.stage_names   )



