import{s as Ze,o as Je,n as Xe}from"../chunks/scheduler.18a86fab.js";import{S as et,i as tt,g as s,s as n,r as c,A as ot,h as i,f as o,c as a,j,u as g,x as p,k as w,y as m,a as r,v as h,d as u,t as _,w as b}from"../chunks/index.98837b22.js";import{T as rt}from"../chunks/Tip.77304350.js";import{D as ae}from"../chunks/Docstring.6758ea23.js";import{H as re}from"../chunks/Heading.7e7e0c5b.js";import{E as nt}from"../chunks/index.92f616ba.js";function at(se){let l,L=`This model is in maintenance mode only, we don’t accept any new PRs changing its code.
If you run into any issues running this model, please reinstall the last version that supported this model: v4.40.2.
You can do so by running the following command: <code>pip install -U transformers==4.40.2</code>.`;return{c(){l=s("p"),l.innerHTML=L},l(v){l=i(v,"P",{"data-svelte-h":!0}),p(l)!=="svelte-1sq0hrb"&&(l.innerHTML=L)},m(v,B){r(v,l,B)},p:Xe,d(v){v&&o(l)}}}function st(se){let l,L,v,B,k,ie,C,De='<img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-DE3412?style=flat&amp;logo=pytorch&amp;logoColor=white"/>',me,G,le,M,de,q,He=`The Graphormer model was proposed in <a href="https://arxiv.org/abs/2106.05234" rel="nofollow">Do Transformers Really Perform Bad for Graph Representation?</a>  by
Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng, Guolin Ke, Di He, Yanming Shen and Tie-Yan Liu. It is a Graph Transformer model, modified to allow computations on graphs instead of text sequences by generating embeddings and features of interest during preprocessing and collation, then using a modified attention.`,pe,z,Ee="The abstract from the paper is the following:",fe,N,Ie="<em>The Transformer architecture has become a dominant choice in many domains, such as natural language processing and computer vision. Yet, it has not achieved competitive performance on popular leaderboards of graph-level prediction compared to mainstream GNN variants. Therefore, it remains a mystery how Transformers could perform well for graph representation learning. In this paper, we solve this mystery by presenting Graphormer, which is built upon the standard Transformer architecture, and could attain excellent results on a broad range of graph representation learning tasks, especially on the recent OGB Large-Scale Challenge. Our key insight to utilizing Transformer in the graph is the necessity of effectively encoding the structural information of a graph into the model. To this end, we propose several simple yet effective structural encoding methods to help Graphormer better model graph-structured data. Besides, we mathematically characterize the expressive power of Graphormer and exhibit that with our ways of encoding the structural information of graphs, many popular GNN variants could be covered as the special cases of Graphormer.</em>",ce,P,Oe='This model was contributed by <a href="https://huggingface.co/clefourrier" rel="nofollow">clefourrier</a>. The original code can be found <a href="https://github.com/microsoft/Graphormer" rel="nofollow">here</a>.',ge,F,he,D,Se=`This model will not work well on large graphs (more than 100 nodes/edges), as it will make the memory explode.
You can reduce the batch size, increase your RAM, or decrease the <code>UNREACHABLE_NODE_DISTANCE</code> parameter in algos_graphormer.pyx, but it will be hard to go above 700 nodes/edges.`,ue,H,Ae="This model does not use a tokenizer, but instead a special collator during training.",_e,E,be,y,I,we,Q,Re=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/graphormer#transformers.GraphormerModel">~GraphormerModel</a>. It is used to instantiate an
Graphormer model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the Graphormer
<a href="https://huggingface.co/graphormer-base-pcqm4mv1" rel="nofollow">graphormer-base-pcqm4mv1</a> architecture.`,Le,W,Ue=`Configuration objects inherit from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,ve,O,ye,f,S,ke,K,Ve="The Graphormer model is a graph-encoder model.",Me,Z,Ye=`It goes from a graph to its representation. If you want to use the model for a downstream classification task, use
GraphormerForGraphClassification instead. For any other downstream task, feel free to add a new class, or combine
this model with a downstream model of your choice, following the example in GraphormerForGraphClassification.`,qe,J,A,xe,R,$e,d,U,ze,X,je="This model can be used for graph-level classification or regression tasks.",Ne,ee,Be="It can be trained on",Pe,te,Qe=`<li>regression (by setting config.num_classes to 1); there should be one float-type label per graph</li> <li>one task classification (by setting config.num_classes to the number of classes); there should be one integer
label per graph</li> <li>binary multi-task classification (by setting config.num_classes to the number of labels); there should be a list
of integer labels for each graph.</li>`,Fe,oe,V,Ce,Y,Ge,ne,Te;return k=new re({props:{title:"Graphormer",local:"graphormer",headingTag:"h1"}}),G=new rt({props:{warning:!0,$$slots:{default:[at]},$$scope:{ctx:se}}}),M=new re({props:{title:"Overview",local:"overview",headingTag:"h2"}}),F=new re({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),E=new re({props:{title:"GraphormerConfig",local:"transformers.GraphormerConfig",headingTag:"h2"}}),I=new ae({props:{name:"class transformers.GraphormerConfig",anchor:"transformers.GraphormerConfig",parameters:[{name:"num_classes",val:": int = 1"},{name:"num_atoms",val:": int = 4608"},{name:"num_edges",val:": int = 1536"},{name:"num_in_degree",val:": int = 512"},{name:"num_out_degree",val:": int = 512"},{name:"num_spatial",val:": int = 512"},{name:"num_edge_dis",val:": int = 128"},{name:"multi_hop_max_dist",val:": int = 5"},{name:"spatial_pos_max",val:": int = 1024"},{name:"edge_type",val:": str = 'multi_hop'"},{name:"max_nodes",val:": int = 512"},{name:"share_input_output_embed",val:": bool = False"},{name:"num_hidden_layers",val:": int = 12"},{name:"embedding_dim",val:": int = 768"},{name:"ffn_embedding_dim",val:": int = 768"},{name:"num_attention_heads",val:": int = 32"},{name:"dropout",val:": float = 0.1"},{name:"attention_dropout",val:": float = 0.1"},{name:"activation_dropout",val:": float = 0.1"},{name:"layerdrop",val:": float = 0.0"},{name:"encoder_normalize_before",val:": bool = False"},{name:"pre_layernorm",val:": bool = False"},{name:"apply_graphormer_init",val:": bool = False"},{name:"activation_fn",val:": str = 'gelu'"},{name:"embed_scale",val:": typing.Optional[float] = None"},{name:"freeze_embeddings",val:": bool = False"},{name:"num_trans_layers_to_freeze",val:": int = 0"},{name:"traceable",val:": bool = False"},{name:"q_noise",val:": float = 0.0"},{name:"qn_block_size",val:": int = 8"},{name:"kdim",val:": typing.Optional[int] = None"},{name:"vdim",val:": typing.Optional[int] = None"},{name:"bias",val:": bool = True"},{name:"self_attention",val:": bool = True"},{name:"pad_token_id",val:" = 0"},{name:"bos_token_id",val:" = 1"},{name:"eos_token_id",val:" = 2"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.GraphormerConfig.num_classes",description:`<strong>num_classes</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of target classes or labels, set to n for binary classification of n tasks.`,name:"num_classes"},{anchor:"transformers.GraphormerConfig.num_atoms",description:`<strong>num_atoms</strong> (<code>int</code>, <em>optional</em>, defaults to 512*9) &#x2014;
Number of node types in the graphs.`,name:"num_atoms"},{anchor:"transformers.GraphormerConfig.num_edges",description:`<strong>num_edges</strong> (<code>int</code>, <em>optional</em>, defaults to 512*3) &#x2014;
Number of edges types in the graph.`,name:"num_edges"},{anchor:"transformers.GraphormerConfig.num_in_degree",description:`<strong>num_in_degree</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Number of in degrees types in the input graphs.`,name:"num_in_degree"},{anchor:"transformers.GraphormerConfig.num_out_degree",description:`<strong>num_out_degree</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Number of out degrees types in the input graphs.`,name:"num_out_degree"},{anchor:"transformers.GraphormerConfig.num_edge_dis",description:`<strong>num_edge_dis</strong> (<code>int</code>, <em>optional</em>, defaults to 128) &#x2014;
Number of edge dis in the input graphs.`,name:"num_edge_dis"},{anchor:"transformers.GraphormerConfig.multi_hop_max_dist",description:`<strong>multi_hop_max_dist</strong> (<code>int</code>, <em>optional</em>, defaults to 20) &#x2014;
Maximum distance of multi hop edges between two nodes.`,name:"multi_hop_max_dist"},{anchor:"transformers.GraphormerConfig.spatial_pos_max",description:`<strong>spatial_pos_max</strong> (<code>int</code>, <em>optional</em>, defaults to 1024) &#x2014;
Maximum distance between nodes in the graph attention bias matrices, used during preprocessing and
collation.`,name:"spatial_pos_max"},{anchor:"transformers.GraphormerConfig.edge_type",description:`<strong>edge_type</strong> (<code>str</code>, <em>optional</em>, defaults to multihop) &#x2014;
Type of edge relation chosen.`,name:"edge_type"},{anchor:"transformers.GraphormerConfig.max_nodes",description:`<strong>max_nodes</strong> (<code>int</code>, <em>optional</em>, defaults to 512) &#x2014;
Maximum number of nodes which can be parsed for the input graphs.`,name:"max_nodes"},{anchor:"transformers.GraphormerConfig.share_input_output_embed",description:`<strong>share_input_output_embed</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Shares the embedding layer between encoder and decoder - careful, True is not implemented.`,name:"share_input_output_embed"},{anchor:"transformers.GraphormerConfig.num_layers",description:`<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 12) &#x2014;
Number of layers.`,name:"num_layers"},{anchor:"transformers.GraphormerConfig.embedding_dim",description:`<strong>embedding_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimension of the embedding layer in encoder.`,name:"embedding_dim"},{anchor:"transformers.GraphormerConfig.ffn_embedding_dim",description:`<strong>ffn_embedding_dim</strong> (<code>int</code>, <em>optional</em>, defaults to 768) &#x2014;
Dimension of the &#x201C;intermediate&#x201D; (often named feed-forward) layer in encoder.`,name:"ffn_embedding_dim"},{anchor:"transformers.GraphormerConfig.num_attention_heads",description:`<strong>num_attention_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
Number of attention heads in the encoder.`,name:"num_attention_heads"},{anchor:"transformers.GraphormerConfig.self_attention",description:`<strong>self_attention</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Model is self attentive (False not implemented).`,name:"self_attention"},{anchor:"transformers.GraphormerConfig.activation_function",description:`<strong>activation_function</strong> (<code>str</code> or <code>function</code>, <em>optional</em>, defaults to <code>&quot;gelu&quot;</code>) &#x2014;
The non-linear activation function (function or string) in the encoder and pooler. If string, <code>&quot;gelu&quot;</code>,
<code>&quot;relu&quot;</code>, <code>&quot;silu&quot;</code> and <code>&quot;gelu_new&quot;</code> are supported.`,name:"activation_function"},{anchor:"transformers.GraphormerConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.`,name:"dropout"},{anchor:"transformers.GraphormerConfig.attention_dropout",description:`<strong>attention_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for the attention weights.`,name:"attention_dropout"},{anchor:"transformers.GraphormerConfig.activation_dropout",description:`<strong>activation_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.1) &#x2014;
The dropout probability for the activation of the linear transformer layer.`,name:"activation_dropout"},{anchor:"transformers.GraphormerConfig.layerdrop",description:`<strong>layerdrop</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
The LayerDrop probability for the encoder. See the [LayerDrop paper](see <a href="https://arxiv.org/abs/1909.11556" rel="nofollow">https://arxiv.org/abs/1909.11556</a>)
for more details.`,name:"layerdrop"},{anchor:"transformers.GraphormerConfig.bias",description:`<strong>bias</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Uses bias in the attention module - unsupported at the moment.`,name:"bias"},{anchor:"transformers.GraphormerConfig.embed_scale(float,",description:`<strong>embed_scale(<code>float</code>,</strong> <em>optional</em>, defaults to None) &#x2014;
Scaling factor for the node embeddings.`,name:"embed_scale(float,"},{anchor:"transformers.GraphormerConfig.num_trans_layers_to_freeze",description:`<strong>num_trans_layers_to_freeze</strong> (<code>int</code>, <em>optional</em>, defaults to 0) &#x2014;
Number of transformer layers to freeze.`,name:"num_trans_layers_to_freeze"},{anchor:"transformers.GraphormerConfig.encoder_normalize_before",description:`<strong>encoder_normalize_before</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Normalize features before encoding the graph.`,name:"encoder_normalize_before"},{anchor:"transformers.GraphormerConfig.pre_layernorm",description:`<strong>pre_layernorm</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Apply layernorm before self attention and the feed forward network. Without this, post layernorm will be
used.`,name:"pre_layernorm"},{anchor:"transformers.GraphormerConfig.apply_graphormer_init",description:`<strong>apply_graphormer_init</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Apply a custom graphormer initialisation to the model before training.`,name:"apply_graphormer_init"},{anchor:"transformers.GraphormerConfig.freeze_embeddings",description:`<strong>freeze_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Freeze the embedding layer, or train it along the model.`,name:"freeze_embeddings"},{anchor:"transformers.GraphormerConfig.encoder_normalize_before",description:`<strong>encoder_normalize_before</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Apply the layer norm before each encoder block.`,name:"encoder_normalize_before"},{anchor:"transformers.GraphormerConfig.q_noise",description:`<strong>q_noise</strong> (<code>float</code>, <em>optional</em>, defaults to 0.0) &#x2014;
Amount of quantization noise (see &#x201C;Training with Quantization Noise for Extreme Model Compression&#x201D;). (For
more detail, see fairseq&#x2019;s documentation on quant_noise).`,name:"q_noise"},{anchor:"transformers.GraphormerConfig.qn_block_size",description:`<strong>qn_block_size</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Size of the blocks for subsequent quantization with iPQ (see q_noise).`,name:"qn_block_size"},{anchor:"transformers.GraphormerConfig.kdim",description:`<strong>kdim</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
Dimension of the key in the attention, if different from the other values.`,name:"kdim"},{anchor:"transformers.GraphormerConfig.vdim",description:`<strong>vdim</strong> (<code>int</code>, <em>optional</em>, defaults to None) &#x2014;
Dimension of the value in the attention, if different from the other values.`,name:"vdim"},{anchor:"transformers.GraphormerConfig.use_cache",description:`<strong>use_cache</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not the model should return the last key/values attentions (not used by all models).`,name:"use_cache"},{anchor:"transformers.GraphormerConfig.traceable",description:`<strong>traceable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Changes return value of the encoder&#x2019;s inner_state to stacked tensors.`,name:"traceable"},{anchor:"transformers.GraphormerConfig.Example",description:"<strong>Example</strong> &#x2014;",name:"Example"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deprecated/graphormer/configuration_graphormer.py#L26"}}),O=new re({props:{title:"GraphormerModel",local:"transformers.GraphormerModel",headingTag:"h2"}}),S=new ae({props:{name:"class transformers.GraphormerModel",anchor:"transformers.GraphormerModel",parameters:[{name:"config",val:": GraphormerConfig"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deprecated/graphormer/modeling_graphormer.py#L768"}}),A=new ae({props:{name:"forward",anchor:"transformers.GraphormerModel.forward",parameters:[{name:"input_nodes",val:": LongTensor"},{name:"input_edges",val:": LongTensor"},{name:"attn_bias",val:": Tensor"},{name:"in_degree",val:": LongTensor"},{name:"out_degree",val:": LongTensor"},{name:"spatial_pos",val:": LongTensor"},{name:"attn_edge_type",val:": LongTensor"},{name:"perturb",val:": typing.Optional[torch.FloatTensor] = None"},{name:"masked_tokens",val:": None = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"**unused",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deprecated/graphormer/modeling_graphormer.py#L797"}}),R=new re({props:{title:"GraphormerForGraphClassification",local:"transformers.GraphormerForGraphClassification",headingTag:"h2"}}),U=new ae({props:{name:"class transformers.GraphormerForGraphClassification",anchor:"transformers.GraphormerForGraphClassification",parameters:[{name:"config",val:": GraphormerConfig"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deprecated/graphormer/modeling_graphormer.py#L839"}}),V=new ae({props:{name:"forward",anchor:"transformers.GraphormerForGraphClassification.forward",parameters:[{name:"input_nodes",val:": LongTensor"},{name:"input_edges",val:": LongTensor"},{name:"attn_bias",val:": Tensor"},{name:"in_degree",val:": LongTensor"},{name:"out_degree",val:": LongTensor"},{name:"spatial_pos",val:": LongTensor"},{name:"attn_edge_type",val:": LongTensor"},{name:"labels",val:": typing.Optional[torch.LongTensor] = None"},{name:"return_dict",val:": typing.Optional[bool] = None"},{name:"**unused",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/deprecated/graphormer/modeling_graphormer.py#L862"}}),Y=new nt({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/graphormer.md"}}),{c(){l=s("meta"),L=n(),v=s("p"),B=n(),c(k.$$.fragment),ie=n(),C=s("div"),C.innerHTML=De,me=n(),c(G.$$.fragment),le=n(),c(M.$$.fragment),de=n(),q=s("p"),q.innerHTML=He,pe=n(),z=s("p"),z.textContent=Ee,fe=n(),N=s("p"),N.innerHTML=Ie,ce=n(),P=s("p"),P.innerHTML=Oe,ge=n(),c(F.$$.fragment),he=n(),D=s("p"),D.innerHTML=Se,ue=n(),H=s("p"),H.textContent=Ae,_e=n(),c(E.$$.fragment),be=n(),y=s("div"),c(I.$$.fragment),we=n(),Q=s("p"),Q.innerHTML=Re,Le=n(),W=s("p"),W.innerHTML=Ue,ve=n(),c(O.$$.fragment),ye=n(),f=s("div"),c(S.$$.fragment),ke=n(),K=s("p"),K.textContent=Ve,Me=n(),Z=s("p"),Z.textContent=Ye,qe=n(),J=s("div"),c(A.$$.fragment),xe=n(),c(R.$$.fragment),$e=n(),d=s("div"),c(U.$$.fragment),ze=n(),X=s("p"),X.textContent=je,Ne=n(),ee=s("p"),ee.textContent=Be,Pe=n(),te=s("ul"),te.innerHTML=Qe,Fe=n(),oe=s("div"),c(V.$$.fragment),Ce=n(),c(Y.$$.fragment),Ge=n(),ne=s("p"),this.h()},l(e){const t=ot("svelte-u9bgzb",document.head);l=i(t,"META",{name:!0,content:!0}),t.forEach(o),L=a(e),v=i(e,"P",{}),j(v).forEach(o),B=a(e),g(k.$$.fragment,e),ie=a(e),C=i(e,"DIV",{class:!0,"data-svelte-h":!0}),p(C)!=="svelte-13t8s2t"&&(C.innerHTML=De),me=a(e),g(G.$$.fragment,e),le=a(e),g(M.$$.fragment,e),de=a(e),q=i(e,"P",{"data-svelte-h":!0}),p(q)!=="svelte-1muoe1y"&&(q.innerHTML=He),pe=a(e),z=i(e,"P",{"data-svelte-h":!0}),p(z)!=="svelte-vfdo9a"&&(z.textContent=Ee),fe=a(e),N=i(e,"P",{"data-svelte-h":!0}),p(N)!=="svelte-vndg5l"&&(N.innerHTML=Ie),ce=a(e),P=i(e,"P",{"data-svelte-h":!0}),p(P)!=="svelte-jcrxss"&&(P.innerHTML=Oe),ge=a(e),g(F.$$.fragment,e),he=a(e),D=i(e,"P",{"data-svelte-h":!0}),p(D)!=="svelte-i9pwbm"&&(D.innerHTML=Se),ue=a(e),H=i(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-zfbk6c"&&(H.textContent=Ae),_e=a(e),g(E.$$.fragment,e),be=a(e),y=i(e,"DIV",{class:!0});var $=j(y);g(I.$$.fragment,$),we=a($),Q=i($,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-lulxq8"&&(Q.innerHTML=Re),Le=a($),W=i($,"P",{"data-svelte-h":!0}),p(W)!=="svelte-o55m63"&&(W.innerHTML=Ue),$.forEach(o),ve=a(e),g(O.$$.fragment,e),ye=a(e),f=i(e,"DIV",{class:!0});var T=j(f);g(S.$$.fragment,T),ke=a(T),K=i(T,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1h7pfe4"&&(K.textContent=Ve),Me=a(T),Z=i(T,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-dkg3qc"&&(Z.textContent=Ye),qe=a(T),J=i(T,"DIV",{class:!0});var We=j(J);g(A.$$.fragment,We),We.forEach(o),T.forEach(o),xe=a(e),g(R.$$.fragment,e),$e=a(e),d=i(e,"DIV",{class:!0});var x=j(d);g(U.$$.fragment,x),ze=a(x),X=i(x,"P",{"data-svelte-h":!0}),p(X)!=="svelte-1nkx1mp"&&(X.textContent=je),Ne=a(x),ee=i(x,"P",{"data-svelte-h":!0}),p(ee)!=="svelte-16q1k4"&&(ee.textContent=Be),Pe=a(x),te=i(x,"UL",{"data-svelte-h":!0}),p(te)!=="svelte-7iqyu8"&&(te.innerHTML=Qe),Fe=a(x),oe=i(x,"DIV",{class:!0});var Ke=j(oe);g(V.$$.fragment,Ke),Ke.forEach(o),x.forEach(o),Ce=a(e),g(Y.$$.fragment,e),Ge=a(e),ne=i(e,"P",{}),j(ne).forEach(o),this.h()},h(){w(l,"name","hf:doc:metadata"),w(l,"content",it),w(C,"class","flex flex-wrap space-x-1"),w(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(f,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(d,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){m(document.head,l),r(e,L,t),r(e,v,t),r(e,B,t),h(k,e,t),r(e,ie,t),r(e,C,t),r(e,me,t),h(G,e,t),r(e,le,t),h(M,e,t),r(e,de,t),r(e,q,t),r(e,pe,t),r(e,z,t),r(e,fe,t),r(e,N,t),r(e,ce,t),r(e,P,t),r(e,ge,t),h(F,e,t),r(e,he,t),r(e,D,t),r(e,ue,t),r(e,H,t),r(e,_e,t),h(E,e,t),r(e,be,t),r(e,y,t),h(I,y,null),m(y,we),m(y,Q),m(y,Le),m(y,W),r(e,ve,t),h(O,e,t),r(e,ye,t),r(e,f,t),h(S,f,null),m(f,ke),m(f,K),m(f,Me),m(f,Z),m(f,qe),m(f,J),h(A,J,null),r(e,xe,t),h(R,e,t),r(e,$e,t),r(e,d,t),h(U,d,null),m(d,ze),m(d,X),m(d,Ne),m(d,ee),m(d,Pe),m(d,te),m(d,Fe),m(d,oe),h(V,oe,null),r(e,Ce,t),h(Y,e,t),r(e,Ge,t),r(e,ne,t),Te=!0},p(e,[t]){const $={};t&2&&($.$$scope={dirty:t,ctx:e}),G.$set($)},i(e){Te||(u(k.$$.fragment,e),u(G.$$.fragment,e),u(M.$$.fragment,e),u(F.$$.fragment,e),u(E.$$.fragment,e),u(I.$$.fragment,e),u(O.$$.fragment,e),u(S.$$.fragment,e),u(A.$$.fragment,e),u(R.$$.fragment,e),u(U.$$.fragment,e),u(V.$$.fragment,e),u(Y.$$.fragment,e),Te=!0)},o(e){_(k.$$.fragment,e),_(G.$$.fragment,e),_(M.$$.fragment,e),_(F.$$.fragment,e),_(E.$$.fragment,e),_(I.$$.fragment,e),_(O.$$.fragment,e),_(S.$$.fragment,e),_(A.$$.fragment,e),_(R.$$.fragment,e),_(U.$$.fragment,e),_(V.$$.fragment,e),_(Y.$$.fragment,e),Te=!1},d(e){e&&(o(L),o(v),o(B),o(ie),o(C),o(me),o(le),o(de),o(q),o(pe),o(z),o(fe),o(N),o(ce),o(P),o(ge),o(he),o(D),o(ue),o(H),o(_e),o(be),o(y),o(ve),o(ye),o(f),o(xe),o($e),o(d),o(Ce),o(Ge),o(ne)),o(l),b(k,e),b(G,e),b(M,e),b(F,e),b(E,e),b(I),b(O,e),b(S),b(A),b(R,e),b(U),b(V),b(Y,e)}}}const it='{"title":"Graphormer","local":"graphormer","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2},{"title":"GraphormerConfig","local":"transformers.GraphormerConfig","sections":[],"depth":2},{"title":"GraphormerModel","local":"transformers.GraphormerModel","sections":[],"depth":2},{"title":"GraphormerForGraphClassification","local":"transformers.GraphormerForGraphClassification","sections":[],"depth":2}],"depth":1}';function mt(se){return Je(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ht extends et{constructor(l){super(),tt(this,l,mt,st,Ze,{})}}export{ht as component};
