class_docstr: [`XCLIPConfig`] is the configuration class to store the configuration of a [`XCLIPModel`]. It is used to
  instantiate X-CLIP model according to the specified arguments, defining the text model and vision model configs.
  Instantiating a configuration with the defaults will yield a similar configuration to that of the X-CLIP
  [microsoft/xclip-base-patch32](https://huggingface.co/microsoft/xclip-base-patch32) architecture.
  
  Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
  documentation from [`PretrainedConfig`] for more information.
  
  Args:
      text_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`XCLIPTextConfig`].
      vision_config (`dict`, *optional*):
          Dictionary of configuration options used to initialize [`XCLIPVisionConfig`].
      projection_dim (`int`, *optional*, defaults to 512):
          Dimentionality of text and vision projection layers.
      prompt_layers (`int`, *optional*, defaults to 2):
          Number of layers in the video specific prompt generator.
      prompt_alpha (`float`, *optional*, defaults to 0.1):
          Alpha value to use in the video specific prompt generator.
      prompt_hidden_act (`str` or `function`, *optional*, defaults to `"quick_gelu"`):
          The non-linear activation function (function or string) in the video specific prompt generator. If string,
          `"gelu"`, `"relu"`, `"selu"` and `"gelu_new"` ``"quick_gelu"` are supported.
      prompt_num_attention_heads (`int`, *optional*, defaults to 8):
          Number of attention heads in the cross-attention of the video specific prompt generator.
      prompt_attention_dropout (`float`, *optional*, defaults to 0.0):
          The dropout probability for the attention layers in the video specific prompt generator.
      prompt_projection_dropout (`float`, *optional*, defaults to 0.0):
          The dropout probability for the projection layers in the video specific prompt generator.
      logit_scale_init_value (`float`, *optional*, defaults to 2.6592):
          The inital value of the *logit_scale* parameter. Default is used as per the original XCLIP implementation.
      kwargs (*optional*):
          Dictionary of keyword arguments.
class_docstr_tok: ["[","`","XCLIPConfig","`","]","is","the","configuration","class","to","store","the","configuration","of","a","[","`","XCLIPModel","`","]",".","It","is","used","to","instantiate","X-CLIP","model","according","to","the","specified","arguments",",","defining","the","text","model","and","vision","model","configs",".","Instantiating","a","configuration","with","the","defaults","will","yield","a","similar","configuration","to","that","of","the","X-CLIP","[","microsoft\/xclip-base-patch32","]","(","https",":","\/\/huggingface.co\/microsoft\/xclip-base-patch32",")","architecture",".","Configuration","objects","inherit","from","[","`","PretrainedConfig","`","]","and","can","be","used","to","control","the","model","outputs",".","Read","the","documentation","from","[","`","PretrainedConfig","`","]","for","more","information",".","Args",":","text_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","XCLIPTextConfig","`","]",".","vision_config","(","`","dict","`",",","*","optional","*",")",":","Dictionary","of","configuration","options","used","to","initialize","[","`","XCLIPVisionConfig","`","]",".","projection_dim","(","`","int","`",",","*","optional","*",",","defaults","to","512",")",":","Dimentionality","of","text","and","vision","projection","layers",".","prompt_layers","(","`","int","`",",","*","optional","*",",","defaults","to","2",")",":","Number","of","layers","in","the","video","specific","prompt","generator",".","prompt_alpha","(","`","float","`",",","*","optional","*",",","defaults","to","0.1",")",":","Alpha","value","to","use","in","the","video","specific","prompt","generator",".","prompt_hidden_act","(","`","str","`","or","`","function","`",",","*","optional","*",",","defaults","to","`","``","quick_gelu","''","`",")",":","The","non-linear","activation","function","(","function","or","string",")","in","the","video","specific","prompt","generator",".","If","string",",","`","``","gelu","''","`",",","`","``","relu","''","`",",","`","``","selu","''","`","and","`","``","gelu_new","''","`","``","``","quick_gelu","''","`","are","supported",".","prompt_num_attention_heads","(","`","int","`",",","*","optional","*",",","defaults","to","8",")",":","Number","of","attention","heads","in","the","cross-attention","of","the","video","specific","prompt","generator",".","prompt_attention_dropout","(","`","float","`",",","*","optional","*",",","defaults","to","0.0",")",":","The","dropout","probability","for","the","attention","layers","in","the","video","specific","prompt","generator",".","prompt_projection_dropout","(","`","float","`",",","*","optional","*",",","defaults","to","0.0",")",":","The","dropout","probability","for","the","projection","layers","in","the","video","specific","prompt","generator",".","logit_scale_init_value","(","`","float","`",",","*","optional","*",",","defaults","to","2.6592",")",":","The","inital","value","of","the","*","logit_scale","*","parameter",".","Default","is","used","as","per","the","original","XCLIP","implementation",".","kwargs","(","*","optional","*",")",":","Dictionary","of","keyword","arguments","."]
docstr: Instantiate a [`XCLIPConfig`] (or a derived class) from xclip text model configuration and xclip vision model
  configuration.
  
  Returns:
      [`XCLIPConfig`]: An instance of a configuration object
docstr_tok: ["Instantiate","a","[","`","XCLIPConfig","`","]","(","or","a","derived","class",")","from","xclip","text","model","configuration","and","xclip","vision","model","configuration",".","Returns",":","[","`","XCLIPConfig","`","]",":","An","instance","of","a","configuration","object"]
code: def from_text_vision_configs(
      cls,
      text_config: XCLIPTextConfig,
      vision_config: XCLIPVisionConfig,
      **kwargs,
  ):
      r"""
      Instantiate a [`XCLIPConfig`] (or a derived class) from xclip text model configuration and xclip vision model
      configuration.
  
      Returns:
          [`XCLIPConfig`]: An instance of a configuration object
      """
  
      return cls(
          text_config=text_config.to_dict(),
          vision_config=vision_config.to_dict(),
          **kwargs,
      )
  
file_path: transformers/src/transformers/models/x_clip/configuration_x_clip.py
imports: import os
  from typing import Union
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
label_desc: Use image node_id 2 for calling the XCLIPConfig obj's underlying member method code with example usage: obj.from_text_vision_configs(cls, text_config, vision_config) and returns: cls