






'''simple docstring'''





import copy

from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ..auto.configuration_auto import AutoConfig
from ..clip.configuration_clip import CLIPVisionConfig


a    =       logging.get_logger(__name__)
class        __snake_case(					__UpperCamelCase      ):
 lowercase :       int		      =		'''vision-text-dual-encoder'''
 lowercase :       Union[str, Any]		      =		True



 def __init__(	self   :   Tuple ,		UpperCAmelCase__   :   int=512 ,		UpperCAmelCase__   :   Tuple=2.6_592 ,		**UpperCAmelCase__   :   Dict	):

    """simple docstring"""






    super().__init__(**UpperCAmelCase__	)

    if "vision_config" not in kwargs:
       raise ValueError("""`vision_config` can not be `None`."""	)

    if "text_config" not in kwargs:
       raise ValueError("""`text_config` can not be `None`."""	)

    lowercase__						:	Tuple         = kwargs.pop("""vision_config"""	)
    lowercase__						:	List[str]         = kwargs.pop("""text_config"""	)

    lowercase__						:	Optional[int]         = vision_config.pop("""model_type"""	)
    lowercase__						:	Any         = text_config.pop("""model_type"""	)

    if vision_model_type == "clip":
       lowercase__						:	Optional[int]         = AutoConfig.for_model(UpperCAmelCase__ ,		**UpperCAmelCase__	).vision_config
    elif vision_model_type == "clip_vision_model":
       lowercase__						:	List[Any]         = CLIPVisionConfig(**UpperCAmelCase__	)
    else:
       lowercase__						:	List[Any]         = AutoConfig.for_model(UpperCAmelCase__ ,		**UpperCAmelCase__	)

    lowercase__						:	str         = AutoConfig.for_model(UpperCAmelCase__ ,		**UpperCAmelCase__	)

    lowercase__						:	Dict         = projection_dim
    lowercase__						:	Optional[int]         = logit_scale_init_value



 @classmethod
 def 						UpperCAmelCase    (	cls   :   Tuple ,		UpperCAmelCase__   :   PretrainedConfig ,		UpperCAmelCase__   :   PretrainedConfig ,		**UpperCAmelCase__   :   int	):

    """simple docstring"""






    return cls(vision_config=vision_config.to_dict() ,		text_config=text_config.to_dict() ,		**UpperCAmelCase__	)







 def 						UpperCAmelCase    (	self   :   Optional[Any]	):

    """simple docstring"""






    lowercase__						:	List[Any]         = copy.deepcopy(self.__dict__	)
    lowercase__						:	Optional[Any]         = self.vision_config.to_dict()
    lowercase__						:	Optional[Any]         = self.text_config.to_dict()
    lowercase__						:	Dict         = self.__class__.model_type
    return output










a    =       10**8
def       a__						(  A					):
   if n % 10 == 0:
      return False
   lowercase__						:	Optional[Any]         = str(A					)
   return s == s[::-1]
def       a__						(  ):
   lowercase__						:	Union[str, Any]         = set()
   lowercase__						:	Dict         = 1
   lowercase__						:	List[str]         = 5
   while sum_squares < LIMIT:
      lowercase__						:	Tuple         = first_square + 1
      while sum_squares < LIMIT:
         if is_palindrome(A					):
            answer.add(A					)
         last_square += 1
         sum_squares += last_square**2
      first_square += 1
      lowercase__						:	Any         = first_square**2 + (first_square + 1) ** 2

   return sum(A					)


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


