
import copy

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


UpperCAmelCase      =   logging.get_logger(__name__)







class lowerCAmelCase_						(			lowerCamelCase__	):

 '''simple docstring'''

 __snake_case												=  "encoder-decoder"
 __snake_case												=  True



 def __init__(     self		,				**_UpperCAmelCase ):
       super().__init__(**_UpperCAmelCase )
       assert (
           "encoder" in kwargs and "decoder" in kwargs
       ), "Config has to be initialized with encoder and decoder config"
       snake_case_	=				kwargs.pop('''encoder''' )
       snake_case_	=				encoder_config.pop('''model_type''' )
       snake_case_	=				kwargs.pop('''decoder''' )
       snake_case_	=				decoder_config.pop('''model_type''' )

       from ..auto.configuration_auto import AutoConfig

       snake_case_	=				AutoConfig.for_model(_UpperCAmelCase		,				**_UpperCAmelCase )
       snake_case_	=				AutoConfig.for_model(_UpperCAmelCase		,				**_UpperCAmelCase )
       snake_case_	=				True



 @classmethod
 def 						UpperCamelCase__					(     cls		,				_UpperCAmelCase		,				_UpperCAmelCase		,				**_UpperCAmelCase ):
       logger.info('''Set `config.is_decoder=True` and `config.add_cross_attention=True` for decoder_config''' )
       snake_case_	=				True
       snake_case_	=				True

       return cls(encoder=encoder_config.to_dict()		,				decoder=decoder_config.to_dict()		,				**_UpperCAmelCase )





 def 						UpperCamelCase__					(     self ):
       snake_case_	=				copy.deepcopy(self.__dict__ )
       snake_case_	=				self.encoder.to_dict()
       snake_case_	=				self.decoder.to_dict()
       snake_case_	=				self.__class__.model_type
       return output



import os






def 	__lowerCAmelCase   ()->  List[Any]:




      """simple docstring"""

      snake_case_	=				os.path.join(os.path.dirname(SCREAMING_SNAKE_CASE ) , '''num.txt''' )
      with open(SCREAMING_SNAKE_CASE ) as file_hand:
            return str(sum(int(SCREAMING_SNAKE_CASE ) for line in file_hand ) )[:10]


if __name__ == "__main__":
   print(solution())