





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


UpperCAmelCase_      							=     logging.get_logger(__name__)

UpperCAmelCase_      							=     {
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}
class 			UpperCamelCase_		(  _lowerCamelCase					):
					lowerCAmelCase_							=	'''van'''




					def __init__(		self				,						lowerCAmelCase_=224				,						lowerCAmelCase_=3				,						lowerCAmelCase_=[7, 3, 3, 3]				,						lowerCAmelCase_=[4, 2, 2, 2]				,						lowerCAmelCase_=[64, 128, 320, 512]				,						lowerCAmelCase_=[3, 3, 12, 3]				,						lowerCAmelCase_=[8, 8, 4, 4]				,						lowerCAmelCase_="gelu"				,						lowerCAmelCase_=0.02				,						lowerCAmelCase_=1E-6				,						lowerCAmelCase_=1E-2				,						lowerCAmelCase_=0.0				,						lowerCAmelCase_=0.0				,						**lowerCAmelCase_				,						)		->							Any:
										super().__init__(**lowerCAmelCase_  )
										_snake_case									=				image_size
										_snake_case									=				num_channels
										_snake_case									=				patch_sizes
										_snake_case									=				strides
										_snake_case									=				hidden_sizes
										_snake_case									=				depths
										_snake_case									=				mlp_ratios
										_snake_case									=				hidden_act
										_snake_case									=				initializer_range
										_snake_case									=				layer_norm_eps
										_snake_case									=				layer_scale_init_value
										_snake_case									=				drop_path_rate
										_snake_case									=				dropout_rate










from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCAmelCase_      							=     {
    """configuration_bigbird_pegasus""": [
        """BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """BigBirdPegasusConfig""",
        """BigBirdPegasusOnnxConfig""",
    ],
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCAmelCase_      							=     [
					    """BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST""",
					    """BigBirdPegasusForCausalLM""",
					    """BigBirdPegasusForConditionalGeneration""",
					    """BigBirdPegasusForQuestionAnswering""",
					    """BigBirdPegasusForSequenceClassification""",
					    """BigBirdPegasusModel""",
					    """BigBirdPegasusPreTrainedModel""",
					]


if TYPE_CHECKING:
					from .configuration_bigbird_pegasus import (
					    BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP,
					    BigBirdPegasusConfig,
					    BigBirdPegasusOnnxConfig,
					)

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_bigbird_pegasus import (
										    BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST,
										    BigBirdPegasusForCausalLM,
										    BigBirdPegasusForConditionalGeneration,
										    BigBirdPegasusForQuestionAnswering,
										    BigBirdPegasusForSequenceClassification,
										    BigBirdPegasusModel,
										    BigBirdPegasusPreTrainedModel,
										)


else:
					import sys

					UpperCAmelCase_      							=     _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



