





"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


__UpperCamelCase     :						Optional[Any]						       =  {
    '''configuration_falcon''': ['''FALCON_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''FalconConfig'''],
}

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __UpperCamelCase     :						Any						       =  [
           '''FALCON_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''FalconForCausalLM''',
           '''FalconModel''',
           '''FalconPreTrainedModel''',
           '''FalconForSequenceClassification''',
           '''FalconForTokenClassification''',
           '''FalconForQuestionAnswering''',
       ]


if TYPE_CHECKING:
       from .configuration_falcon import FALCON_PRETRAINED_CONFIG_ARCHIVE_MAP, FalconConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_falcon import (
                  FALCON_PRETRAINED_MODEL_ARCHIVE_LIST,
                  FalconForCausalLM,
                  FalconForQuestionAnswering,
                  FalconForSequenceClassification,
                  FalconForTokenClassification,
                  FalconModel,
                  FalconPreTrainedModel,
              )


else:
       import sys

       __UpperCamelCase     :						str						       =  _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)












"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCamelCase     :						List[str]						       =  logging.get_logger(__name__)

__UpperCamelCase     :						Tuple						       =  {
    '''vinvino02/glpn-kitti''': '''https://huggingface.co/vinvino02/glpn-kitti/resolve/main/config.json''',
    # See all GLPN models at https://huggingface.co/models?filter=glpn
}







class       a							(   a__  ):
 snake_case__             =       '''glpn'''



 def __init__(     self				,       _snake_case=3				,       _snake_case=4				,       _snake_case=[2, 2, 2, 2]				,       _snake_case=[8, 4, 2, 1]				,       _snake_case=[32, 64, 1_60, 2_56]				,       _snake_case=[7, 3, 3, 3]				,       _snake_case=[4, 2, 2, 2]				,       _snake_case=[1, 2, 5, 8]				,       _snake_case=[4, 4, 4, 4]				,       _snake_case="gelu"				,       _snake_case=0.0				,       _snake_case=0.0				,       _snake_case=0.02				,       _snake_case=0.1				,       _snake_case=1E-6				,       _snake_case=64				,       _snake_case=10				,       _snake_case=-1				,       **_snake_case				,       ):







  """simple docstring"""






  super().__init__(**_snake_case     )

  lowerCAmelCase    				= num_channels
  lowerCAmelCase    				= num_encoder_blocks
  lowerCAmelCase    				= depths
  lowerCAmelCase    				= sr_ratios
  lowerCAmelCase    				= hidden_sizes
  lowerCAmelCase    				= patch_sizes
  lowerCAmelCase    				= strides
  lowerCAmelCase    				= mlp_ratios
  lowerCAmelCase    				= num_attention_heads
  lowerCAmelCase    				= hidden_act
  lowerCAmelCase    				= hidden_dropout_prob
  lowerCAmelCase    				= attention_probs_dropout_prob
  lowerCAmelCase    				= initializer_range
  lowerCAmelCase    				= drop_path_rate
  lowerCAmelCase    				= layer_norm_eps
  lowerCAmelCase    				= decoder_hidden_size
  lowerCAmelCase    				= max_depth
  lowerCAmelCase    				= head_in_index





