






def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase ,   __lowerCAmelCase      )			->     int:
     return abs(_snake_case      ) if a == 0 else greatest_common_divisor(b % a ,   _snake_case      )







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase ,   __lowerCAmelCase      )			->     int:


     while y:  # --> when y=0 then loop will terminate and return x as final GCD.
          UpperCamelCase__      :       Union[str, Any]	    =  y, x % y
     return abs(_snake_case      )







def 		SCREAMING_SNAKE_CASE							( )			->     Tuple:


     try:
          UpperCamelCase__      :       List[str]	    =  input("Enter two integers separated by comma (,): "      ).split(","      )
          UpperCamelCase__      :       Tuple	    =  int(nums[0]      )
          UpperCamelCase__      :       str	    =  int(nums[1]      )
          print(
              f'greatest_common_divisor({num_a}, {num_a}) = '
              f'{greatest_common_divisor(_snake_case ,   _snake_case      )}'      )
          print(f'By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(_snake_case ,   _snake_case      )}'      )
     except (IndexError, UnboundLocalError, ValueError):
          print("Wrong input"      )


if __name__ == "__main__":
   main()







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


lowerCamelCase     :							Optional[int]    =logging.get_logger(__name__)

lowerCamelCase     :							Optional[Any]    ={
    '''edbeeching/decision-transformer-gym-hopper-medium''': (
        '''https://huggingface.co/edbeeching/decision-transformer-gym-hopper-medium/resolve/main/config.json'''
    ),
    # See all DecisionTransformer models at https://huggingface.co/models?filter=decision_transformer
}





class       __a  (   A__	):
 _lowerCAmelCase	:	str				=			'''decision_transformer'''
 _lowerCAmelCase	:	Optional[Any]				=			['''past_key_values''']
 _lowerCAmelCase	:	Optional[int]				=			{
     '''max_position_embeddings''': '''n_positions''',
     '''num_attention_heads''': '''n_head''',
     '''num_hidden_layers''': '''n_layer''',
 }







 def __init__(		self :       List[Any]							,       SCREAMING_SNAKE_CASE :       Optional[int]=17							,       SCREAMING_SNAKE_CASE :       Optional[int]=4							,       SCREAMING_SNAKE_CASE :       Optional[int]=1_28							,       SCREAMING_SNAKE_CASE :       Dict=40_96							,       SCREAMING_SNAKE_CASE :       Union[str, Any]=True							,       SCREAMING_SNAKE_CASE :       Tuple=1							,       SCREAMING_SNAKE_CASE :       Optional[int]=10_24							,       SCREAMING_SNAKE_CASE :       Any=3							,       SCREAMING_SNAKE_CASE :       str=1							,       SCREAMING_SNAKE_CASE :       Optional[int]=None							,       SCREAMING_SNAKE_CASE :       Dict="relu"							,       SCREAMING_SNAKE_CASE :       Optional[int]=0.1							,       SCREAMING_SNAKE_CASE :       str=0.1							,       SCREAMING_SNAKE_CASE :       str=0.1							,       SCREAMING_SNAKE_CASE :       Union[str, Any]=1e-5							,       SCREAMING_SNAKE_CASE :       Optional[int]=0.0_2							,       SCREAMING_SNAKE_CASE :       Optional[Any]=True							,       SCREAMING_SNAKE_CASE :       Tuple=True							,       SCREAMING_SNAKE_CASE :       int=5_02_56							,       SCREAMING_SNAKE_CASE :       List[Any]=5_02_56							,       SCREAMING_SNAKE_CASE :       Any=False							,       SCREAMING_SNAKE_CASE :       List[Any]=False							,       **SCREAMING_SNAKE_CASE :       Optional[int]							,       ):


      '''simple docstring'''






      UpperCamelCase__      :       List[str]	    =  state_dim
      UpperCamelCase__      :       Optional[int]	    =  act_dim
      UpperCamelCase__      :       Dict	    =  hidden_size
      UpperCamelCase__      :       Any	    =  max_ep_len
      UpperCamelCase__      :       Optional[Any]	    =  action_tanh
      UpperCamelCase__      :       str	    =  vocab_size
      UpperCamelCase__      :       List[str]	    =  n_positions
      UpperCamelCase__      :       Tuple	    =  n_layer
      UpperCamelCase__      :       Union[str, Any]	    =  n_head
      UpperCamelCase__      :       Dict	    =  n_inner
      UpperCamelCase__      :       int	    =  activation_function
      UpperCamelCase__      :       List[str]	    =  resid_pdrop
      UpperCamelCase__      :       Optional[int]	    =  embd_pdrop
      UpperCamelCase__      :       Optional[Any]	    =  attn_pdrop
      UpperCamelCase__      :       Optional[Any]	    =  layer_norm_epsilon
      UpperCamelCase__      :       int	    =  initializer_range
      UpperCamelCase__      :       Dict	    =  scale_attn_weights
      UpperCamelCase__      :       Tuple	    =  use_cache
      UpperCamelCase__      :       List[str]	    =  scale_attn_by_inverse_layer_idx
      UpperCamelCase__      :       Union[str, Any]	    =  reorder_and_upcast_attn

      UpperCamelCase__      :       Optional[Any]	    =  bos_token_id
      UpperCamelCase__      :       Optional[int]	    =  eos_token_id

      super().__init__(bos_token_id=SCREAMING_SNAKE_CASE							,       eos_token_id=SCREAMING_SNAKE_CASE							,       **SCREAMING_SNAKE_CASE						)