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


__lowerCAmelCase     :	Optional[Any]       			=  logging.get_logger(__name__)

__lowerCAmelCase     :	Optional[Any]       			=  {
    'alibaba-damo/mgp-str-base': 'https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json',
}




class 			UpperCAmelCase_     (					_A	):


  '''simple docstring'''







  a__       			=						"""mgp-str"""
  def __init__(					self     :					Optional[Any]     ,				UpperCamelCase__     :					Optional[int]=[32, 128]     ,				UpperCamelCase__     :					Union[str, Any]=4     ,				UpperCamelCase__     :					Tuple=3     ,				UpperCamelCase__     :					Dict=27     ,				UpperCamelCase__     :					Optional[int]=38     ,				UpperCamelCase__     :					Optional[Any]=5_0257     ,				UpperCamelCase__     :					Any=3_0522     ,				UpperCamelCase__     :					List[Any]=768     ,				UpperCamelCase__     :					List[Any]=12     ,				UpperCamelCase__     :					Tuple=12     ,				UpperCamelCase__     :					Optional[Any]=4.0     ,				UpperCamelCase__     :					Optional[Any]=True     ,				UpperCamelCase__     :					int=False     ,				UpperCamelCase__     :					Tuple=1E-5     ,				UpperCamelCase__     :					Optional[Any]=0.0     ,				UpperCamelCase__     :					str=0.0     ,				UpperCamelCase__     :					Optional[int]=0.0     ,				UpperCamelCase__     :					str=False     ,				UpperCamelCase__     :					int=0.02     ,				**UpperCamelCase__     :					Optional[Any]     ,				)     ->      str:







    """simple docstring"""






    super().__init__(**UpperCamelCase__       )

    __magic_name__								=			image_size
    __magic_name__								=			patch_size
    __magic_name__								=			num_channels
    __magic_name__								=			max_token_length
    __magic_name__								=			num_character_labels
    __magic_name__								=			num_bpe_labels
    __magic_name__								=			num_wordpiece_labels
    __magic_name__								=			hidden_size
    __magic_name__								=			num_hidden_layers
    __magic_name__								=			num_attention_heads
    __magic_name__								=			mlp_ratio
    __magic_name__								=			distilled
    __magic_name__								=			layer_norm_eps
    __magic_name__								=			drop_rate
    __magic_name__								=			qkv_bias
    __magic_name__								=			attn_drop_rate
    __magic_name__								=			drop_path_rate
    __magic_name__								=			output_aa_attentions
    __magic_name__								=			initializer_range



# Copyright 2023 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.
from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__lowerCAmelCase     :	Tuple       			=  {'configuration_timm_backbone': ['TimmBackboneConfig']}


try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    __lowerCAmelCase     :	str       			=  ['TimmBackbone']


if TYPE_CHECKING:
    from .configuration_timm_backbone import TimmBackboneConfig

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_timm_backbone import TimmBackbone

else:
    import sys

    __lowerCAmelCase     :	str       			=  _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)

