



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


lowercase_						=       logging.get_logger(__name__)

lowercase_						=       {
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}
class 			_snake_case     (   lowerCAmelCase_):
    UpperCamelCase__			:   int       						='van'




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









from graphs.minimum_spanning_tree_kruskal import kruskal



def __lowerCAmelCase	(       ):
			lowercase__   					=			9
			lowercase__   					=			[
			    [0, 1, 4],
			    [0, 7, 8],
			    [1, 2, 8],
			    [7, 8, 7],
			    [7, 6, 1],
			    [2, 8, 2],
			    [8, 6, 6],
			    [2, 3, 7],
			    [2, 5, 4],
			    [6, 5, 2],
			    [3, 5, 14],
			    [3, 4, 9],
			    [5, 4, 10],
			    [1, 7, 11],
			]

			lowercase__   					=			kruskal(SCREAMING_SNAKE_CASE_  ,					SCREAMING_SNAKE_CASE_					)

			lowercase__   					=			[
			    [7, 6, 1],
			    [2, 8, 2],
			    [6, 5, 2],
			    [0, 1, 4],
			    [2, 5, 4],
			    [2, 3, 7],
			    [0, 7, 8],
			    [3, 4, 9],
			]

			assert sorted(SCREAMING_SNAKE_CASE_					) == sorted(SCREAMING_SNAKE_CASE_					)




