






'''simple docstring'''







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


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

_A			:    Optional[Any]					  ={
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}

class _lowercase			(       _lowercase	):
							a          = "van"




							def __init__(							self:       int    ,							UpperCamelCase__:       Tuple=224    ,							UpperCamelCase__:       Optional[int]=3    ,							UpperCamelCase__:       str=[7, 3, 3, 3]    ,							UpperCamelCase__:       List[Any]=[4, 2, 2, 2]    ,							UpperCamelCase__:       int=[64, 128, 320, 512]    ,							UpperCamelCase__:       Dict=[3, 3, 12, 3]    ,							UpperCamelCase__:       Union[str, Any]=[8, 8, 4, 4]    ,							UpperCamelCase__:       Dict="gelu"    ,							UpperCamelCase__:       Any=0.02    ,							UpperCamelCase__:       List[Any]=1e-6    ,							UpperCamelCase__:       Optional[Any]=1e-2    ,							UpperCamelCase__:       Optional[Any]=0.0    ,							UpperCamelCase__:       List[Any]=0.0    ,							**UpperCamelCase__:       Optional[Any]    ,							):
														super().__init__(**UpperCamelCase__  )
														lowerCamelCase__      :			Union[str, Any] 						= image_size
														lowerCamelCase__      :			Optional[int] 						= num_channels
														lowerCamelCase__      :			Any 						= patch_sizes
														lowerCamelCase__      :			Union[str, Any] 						= strides
														lowerCamelCase__      :			List[str] 						= hidden_sizes
														lowerCamelCase__      :			Tuple 						= depths
														lowerCamelCase__      :			str 						= mlp_ratios
														lowerCamelCase__      :			Dict 						= hidden_act
														lowerCamelCase__      :			str 						= initializer_range
														lowerCamelCase__      :			Tuple 						= layer_norm_eps
														lowerCamelCase__      :			Union[str, Any] 						= layer_scale_init_value
														lowerCamelCase__      :			Tuple 						= drop_path_rate
														lowerCamelCase__      :			Optional[Any] 						= dropout_rate









'''simple docstring'''







# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team.
#
# 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.

# this script dumps information about the environment

import os
import platform
import sys


_A			:    Dict					  ='''3'''

print('''Python version:''', sys.version)

print('''OS platform:''', platform.platform())
print('''OS architecture:''', platform.machine())

try:
			import torch

			print('''Torch version:''', torch.__version__)
			print('''Cuda available:''', torch.cuda.is_available())
			print('''Cuda version:''', torch.version.cuda)
			print('''CuDNN version:''', torch.backends.cudnn.version())
			print('''Number of GPUs available:''', torch.cuda.device_count())
except ImportError:
			print('''Torch version:''', None)

try:
			import transformers

			print('''transformers version:''', transformers.__version__)
except ImportError:
			print('''transformers version:''', None)

