
'''simple docstring'''


import torch

from transformers import PreTrainedModel

from .custom_configuration import CustomConfig, NoSuperInitConfig




class     __snake_case			(    _a	):
		a_          =					CustomConfig




		def __init__(  self					:Dict			,    _SCREAMING_SNAKE_CASE					:List[Any])					->			Dict:






								'''simple docstring'''






								super().__init__(_SCREAMING_SNAKE_CASE)
								UpperCamelCase_     :	List[str]					     =     torch.nn.Linear(config.hidden_size			,    config.hidden_size)




		def 	_snake_case	(  self					:int			,    _SCREAMING_SNAKE_CASE					:int)					->			List[Any]:






								'''simple docstring'''






								return self.linear(_SCREAMING_SNAKE_CASE)





		def 	_snake_case	(  self					:Union[str, Any]			,    _SCREAMING_SNAKE_CASE					:Optional[Any])					->			Dict:






								'''simple docstring'''






								pass







class     __snake_case			(    _a	):
		a_          =					NoSuperInitConfig




		def __init__(  self					:Any			,    _SCREAMING_SNAKE_CASE					:List[Any])					->			int:






								'''simple docstring'''






								super().__init__(_SCREAMING_SNAKE_CASE)
								UpperCamelCase_     :	Optional[Any]					     =     torch.nn.Linear(config.attribute			,    config.attribute)




		def 	_snake_case	(  self					:List[Any]			,    _SCREAMING_SNAKE_CASE					:List[Any])					->			int:






								'''simple docstring'''






								return self.linear(_SCREAMING_SNAKE_CASE)





		def 	_snake_case	(  self					:List[Any]			,    _SCREAMING_SNAKE_CASE					:int)					->			Any:






								'''simple docstring'''






								pass






'''simple docstring'''


__SCREAMING_SNAKE_CASE						=      {hex(i)[2:]: i for i in range(16)}  # Use [:2] to strip off the leading '0x'
def 					__magic_name__(       UpperCAmelCase__ :       str	):
						UpperCamelCase_     :	str					     =     hex_string.strip().lower()
						if not hex_string:
												raise ValueError("""Empty string was passed to the function"""	)
						UpperCamelCase_     :	Dict					     =     hex_string[0] == """-"""
						if is_negative:
												UpperCamelCase_     :	List[str]					     =     hex_string[1:]
						if not all(char in hex_table for char in hex_string	):
												raise ValueError("""Non-hexadecimal value was passed to the function"""	)
						UpperCamelCase_     :	int					     =     0
						for char in hex_string:
												UpperCamelCase_     :	Any					     =     16 * decimal_number + hex_table[char]
						return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
	from doctest import testmod

	testmod()




