


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


UpperCAmelCase__   	=							logging.get_logger(__name__)

UpperCAmelCase__   	=							{
    '''alibaba-damo/mgp-str-base''': '''https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json''',
}







class       lowerCamelCase__   (       lowerCAmelCase):
     SCREAMING_SNAKE_CASE__      			=			'''mgp-str'''





     def __init__(self		,     UpperCAmelCase=[3_2, 1_2_8]		,     UpperCAmelCase=4		,     UpperCAmelCase=3		,     UpperCAmelCase=2_7		,     UpperCAmelCase=3_8		,     UpperCAmelCase=5_0_2_5_7		,     UpperCAmelCase=3_0_5_2_2		,     UpperCAmelCase=7_6_8		,     UpperCAmelCase=1_2		,     UpperCAmelCase=1_2		,     UpperCAmelCase=4.0		,     UpperCAmelCase=True		,     UpperCAmelCase=False		,     UpperCAmelCase=1e-5		,     UpperCAmelCase=0.0		,     UpperCAmelCase=0.0		,     UpperCAmelCase=0.0		,     UpperCAmelCase=False		,     UpperCAmelCase=0.02		,     **UpperCAmelCase		,     )     ->   Optional[Any]:
      super().__init__(**UpperCAmelCase       )

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





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase__   	=							{
    '''configuration_timesformer''': ['''TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''TimesformerConfig'''],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase__   	=							[
      '''TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
      '''TimesformerModel''',
      '''TimesformerForVideoClassification''',
      '''TimesformerPreTrainedModel''',
  ]

if TYPE_CHECKING:
  from .configuration_timesformer import TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, TimesformerConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_timesformer import (
        TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
        TimesformerForVideoClassification,
        TimesformerModel,
        TimesformerPreTrainedModel,
    )

else:
  import sys

  UpperCAmelCase__   	=							_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)

