code: 
  
  from collections import OrderedDict
  from typing import Mapping
  
  from packaging import version
  
  from ...configuration_utils import PretrainedConfig
  from ...onnx import OnnxConfig
  from ...utils import logging
  from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices
  
  
  lowerCamelCase     =      logging.get_logger(__name__)
  
  lowerCamelCase     =      {
      """facebook/convnext-tiny-224""": """https://huggingface.co/facebook/convnext-tiny-224/resolve/main/config.json""",
      # See all ConvNeXT models at https://huggingface.co/models?filter=convnext
  }
  
  
  
  
  
  
  
  class 		__magic_name__    (							UpperCAmelCase__	, UpperCAmelCase__							):
  
     '''simple docstring'''
  
  
  
  
     lowerCamelCase__				:			Union[str, Any]												=     'convnext'
  
  
  
     def __init__(       self,					lowercase_=3,					lowercase_=4,					lowercase_=4,					lowercase_=None,					lowercase_=None,					lowercase_="gelu",					lowercase_=0.02,					lowercase_=1E-12,					lowercase_=1E-6,					lowercase_=0.0,					lowercase_=224,					lowercase_=None,					lowercase_=None,					**lowercase_,					)							->					int:
  
  
  
  
  
  
       """simple docstring"""
  
  
  
  
  
  
       super().__init__(**lowerCamelCase__ )
  
       a__						=num_channels
       a__						=patch_size
       a__						=num_stages
       a__						=[96, 192, 384, 768] if hidden_sizes is None else hidden_sizes
       a__						=[3, 3, 9, 3] if depths is None else depths
       a__						=hidden_act
       a__						=initializer_range
       a__						=layer_norm_eps
       a__						=layer_scale_init_value
       a__						=drop_path_rate
       a__						=image_size
       a__						=["stem"] + [F"""stage{idx}""" for idx in range(1,					len(self.depths ) + 1 )]
       a__						=get_aligned_output_features_output_indices(
           out_features=lowerCamelCase__,					out_indices=lowerCamelCase__,					stage_names=self.stage_names )
  
  
  
  
  
  
  
  class 		__magic_name__    (							UpperCAmelCase__							):
  
     '''simple docstring'''
  
  
  
  
     lowerCamelCase__				:			int												=     version.parse('1.11'							)
  
  
  
     @property
     def 				_UpperCAmelCase				(       self )							->					Optional[Any]:
  
  
  
  
  
  
       """simple docstring"""
  
  
  
  
  
  
       return OrderedDict(
           [
               ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
           ] )
  
  
  
     @property
     def 				_UpperCAmelCase				(       self )							->					Union[str, Any]:
  
  
  
  
  
  
       """simple docstring"""
  
  
  
  
  
  
       return 1E-5
  
style_context: 
  
  import heapq
  
  
  
  
  def     UpperCAmelCase__       (    _A   :				Optional[Any]			,   _A   :				str			,   _A   :				Optional[Any]							):
  
  
  
  
  
    '''simple docstring'''
  
  
  
  
  
  
  
    a__						=[(0, start)]  # cost from start node,end node
    a__						=set()
    while heap:
      ((a__),   (a__))						=heapq.heappop(_A							)
      if u in visited:
        continue
      visited.add(_A							)
      if u == end:
        return cost
      for v, c in graph[u]:
        if v in visited:
          continue
        a__						=cost + c
        heapq.heappush(_A			,   (next_item, v)							)
    return -1
  
  
  lowerCamelCase     =      {
      '''A''': [['''B''', 2], ['''C''', 5]],
      '''B''': [['''A''', 2], ['''D''', 3], ['''E''', 1], ['''F''', 1]],
      '''C''': [['''A''', 5], ['''F''', 3]],
      '''D''': [['''B''', 3]],
      '''E''': [['''B''', 4], ['''F''', 3]],
      '''F''': [['''C''', 3], ['''E''', 3]],
  }
  lowerCamelCase     =      {
      '''B''': [['''C''', 1]],
      '''C''': [['''D''', 1]],
      '''D''': [['''F''', 1]],
      '''E''': [['''B''', 1], ['''F''', 3]],
      '''F''': [],
  }
  lowerCamelCase     =      {
      '''B''': [['''C''', 1]],
      '''C''': [['''D''', 1]],
      '''D''': [['''F''', 1]],
      '''E''': [['''B''', 1], ['''G''', 2]],
      '''F''': [],
      '''G''': [['''F''', 1]],
  }
  
  lowerCamelCase     =      dijkstra(G, '''E''', '''C''')
  print(short_distance)  # E -- 3 --> F -- 3 --> C == 6
  
  lowerCamelCase     =      dijkstra(Ga, '''E''', '''F''')
  print(short_distance)  # E -- 3 --> F == 3
  
  lowerCamelCase     =      dijkstra(Ga, '''E''', '''F''')
  print(short_distance)  # E -- 2 --> G -- 1 --> F == 3
  
  if __name__ == "__main__":
         import doctest
  
         doctest.testmod()
  