




def    A						(__A   :    list[int]   ,				__A   :    int       )   ->      bool:







     """simple docstring"""


     UpperCAmelCase_          =							len(__A       )
     UpperCAmelCase_          =							[[False] * (required_sum + 1) for _ in range(arr_len + 1       )]

     # for each arr value, a sum of zero(0) can be formed by not taking any element
     # hence True/1
     for i in range(arr_len + 1       ):
          UpperCAmelCase_          =							True

     # sum is not zero and set is empty then false
     for i in range(1   ,				required_sum + 1       ):
          UpperCAmelCase_          =							False

     for i in range(1   ,				arr_len + 1       ):
          for j in range(1   ,				required_sum + 1       ):
               if arr[i - 1] > j:
                    UpperCAmelCase_          =							subset[i - 1][j]
               if arr[i - 1] <= j:
                    UpperCAmelCase_          =							subset[i - 1][j] or subset[i - 1][j - arr[i - 1]]

     return subset[arr_len][required_sum]


if __name__ == "__main__":
    import doctest

    doctest.testmod()









import logging

from transformers import PretrainedConfig


a__				=		logging.getLogger(__name__)


a__				=		{
    '''bertabs-finetuned-cnndm''': '''https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json''',
}

class 				UpperCAmelCase_		(			__lowercase   ):
							"""simple docstring"""







							UpperCAmelCase__       :						Any	    =    "bertabs"


							def __init__(			self       ,							_a=3_0_5_2_2       ,							_a=5_1_2       ,							_a=6       ,							_a=5_1_2       ,							_a=8       ,							_a=5_1_2       ,							_a=0.2       ,							_a=6       ,							_a=7_6_8       ,							_a=8       ,							_a=2_0_4_8       ,							_a=0.2       ,							**_a       ,							)    ->    Any:
												super().__init__(**_a       )

												_a	:    int         =		vocab_size
												_a	:    List[str]         =		max_pos

												_a	:    Tuple         =		enc_layers
												_a	:    Optional[Any]         =		enc_hidden_size
												_a	:    int         =		enc_heads
												_a	:    Optional[Any]         =		enc_ff_size
												_a	:    List[str]         =		enc_dropout

												_a	:    Tuple         =		dec_layers
												_a	:    Optional[Any]         =		dec_hidden_size
												_a	:    Optional[Any]         =		dec_heads
												_a	:    Optional[Any]         =		dec_ff_size
												_a	:    List[Any]         =		dec_dropout



