


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


lowerCamelCase						=		logging.get_logger(__name__)

lowerCamelCase						=		{
    '''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							(    _lowercase):
	_a  :  Dict				   =							'''glpn'''




	def __init__( self						:		Dict		, _SCREAMING_SNAKE_CASE						:		Optional[Any]=3		, _SCREAMING_SNAKE_CASE						:		Dict=4		, _SCREAMING_SNAKE_CASE						:		Union[str, Any]=[2, 2, 2, 2]		, _SCREAMING_SNAKE_CASE						:		List[Any]=[8, 4, 2, 1]		, _SCREAMING_SNAKE_CASE						:		Optional[int]=[32, 64, 160, 256]		, _SCREAMING_SNAKE_CASE						:		List[str]=[7, 3, 3, 3]		, _SCREAMING_SNAKE_CASE						:		Union[str, Any]=[4, 2, 2, 2]		, _SCREAMING_SNAKE_CASE						:		Tuple=[1, 2, 5, 8]		, _SCREAMING_SNAKE_CASE						:		int=[4, 4, 4, 4]		, _SCREAMING_SNAKE_CASE						:		Optional[Any]="gelu"		, _SCREAMING_SNAKE_CASE						:		Optional[Any]=0.0		, _SCREAMING_SNAKE_CASE						:		Union[str, Any]=0.0		, _SCREAMING_SNAKE_CASE						:		Optional[int]=0.02		, _SCREAMING_SNAKE_CASE						:		Optional[Any]=0.1		, _SCREAMING_SNAKE_CASE						:		Optional[Any]=1E-6		, _SCREAMING_SNAKE_CASE						:		Optional[int]=64		, _SCREAMING_SNAKE_CASE						:		Any=10		, _SCREAMING_SNAKE_CASE						:		List[str]=-1		, **_SCREAMING_SNAKE_CASE						:		Tuple		, )->	Dict:
			super().__init__(**_SCREAMING_SNAKE_CASE		)

			lowerCAmelCase__       :      Optional[int]   					= num_channels
			lowerCAmelCase__       :      List[str]   					= num_encoder_blocks
			lowerCAmelCase__       :      List[str]   					= depths
			lowerCAmelCase__       :      Union[str, Any]   					= sr_ratios
			lowerCAmelCase__       :      Dict   					= hidden_sizes
			lowerCAmelCase__       :      str   					= patch_sizes
			lowerCAmelCase__       :      List[str]   					= strides
			lowerCAmelCase__       :      List[Any]   					= mlp_ratios
			lowerCAmelCase__       :      Dict   					= num_attention_heads
			lowerCAmelCase__       :      Dict   					= hidden_act
			lowerCAmelCase__       :      Dict   					= hidden_dropout_prob
			lowerCAmelCase__       :      Dict   					= attention_probs_dropout_prob
			lowerCAmelCase__       :      Dict   					= initializer_range
			lowerCAmelCase__       :      Any   					= drop_path_rate
			lowerCAmelCase__       :      str   					= layer_norm_eps
			lowerCAmelCase__       :      str   					= decoder_hidden_size
			lowerCAmelCase__       :      Dict   					= max_depth
			lowerCAmelCase__       :      List[Any]   					= head_in_index






def 					lowerCamelCase_   (	_a	):




		"""simple docstring"""






		if number < 0:
				raise ValueError('''number must not be negative'''	)
		return number & (number - 1) == 0


if __name__ == "__main__":
		import doctest

		doctest.testmod()




