Skip to content

Commit

Permalink
build based on 8dbac17
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 12, 2024
1 parent 2a8b8e7 commit 0d5342b
Show file tree
Hide file tree
Showing 25 changed files with 123 additions and 90 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-10-03T07:20:24","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-10-12T09:22:50","documenter_version":"1.7.0"}}
6 changes: 3 additions & 3 deletions dev/api/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

julia> dotdec(g, rand(2, 5))
1×6 Matrix{Float64}:
0.345098 0.458305 0.106353 0.345098 0.458305 0.106353</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/3fe2c769bbd36fa7efdf2fb0fbae0d3df03ae717/GraphNeuralNetworks/src/layers/basic.jl#L187-L209">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.GNNChain" href="#GraphNeuralNetworks.GNNChain"><code>GraphNeuralNetworks.GNNChain</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">GNNChain(layers...)
0.345098 0.458305 0.106353 0.345098 0.458305 0.106353</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/8dbac1712dd1835216ae2e6002dcc6e7fe8b9d83/GraphNeuralNetworks/src/layers/basic.jl#L187-L209">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.GNNChain" href="#GraphNeuralNetworks.GNNChain"><code>GraphNeuralNetworks.GNNChain</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">GNNChain(layers...)
GNNChain(name = layer, ...)</code></pre><p>Collects multiple layers / functions to be called in sequence on given input graph and input node features. </p><p>It allows to compose layers in a sequential fashion as <code>Flux.Chain</code> does, propagating the output of each layer to the next one. In addition, <code>GNNChain</code> handles the input graph as well, providing it as a first argument only to layers subtyping the <a href="#GraphNeuralNetworks.GNNLayer"><code>GNNLayer</code></a> abstract type. </p><p><code>GNNChain</code> supports indexing and slicing, <code>m[2]</code> or <code>m[1:end-1]</code>, and if names are given, <code>m[:name] == m[1]</code> etc.</p><p><strong>Examples</strong></p><pre><code class="language-julia-repl hljs">julia&gt; using Flux, GraphNeuralNetworks

julia&gt; m = GNNChain(GCNConv(2=&gt;5),
Expand Down Expand Up @@ -41,7 +41,7 @@
2.90053 2.90053 2.90053 2.90053 2.90053 2.90053

julia&gt; m2[:enc](g, x) == m(g, x)
true</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/3fe2c769bbd36fa7efdf2fb0fbae0d3df03ae717/GraphNeuralNetworks/src/layers/basic.jl#L54-L105">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.GNNLayer" href="#GraphNeuralNetworks.GNNLayer"><code>GraphNeuralNetworks.GNNLayer</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">abstract type GNNLayer end</code></pre><p>An abstract type from which graph neural network layers are derived.</p><p>See also <a href="#GraphNeuralNetworks.GNNChain"><code>GNNChain</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/3fe2c769bbd36fa7efdf2fb0fbae0d3df03ae717/GraphNeuralNetworks/src/layers/basic.jl#L1-L7">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.WithGraph" href="#GraphNeuralNetworks.WithGraph"><code>GraphNeuralNetworks.WithGraph</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">WithGraph(model, g::GNNGraph; traingraph=false)</code></pre><p>A type wrapping the <code>model</code> and tying it to the graph <code>g</code>. In the forward pass, can only take feature arrays as inputs, returning <code>model(g, x...; kws...)</code>.</p><p>If <code>traingraph=false</code>, the graph&#39;s parameters won&#39;t be part of the <code>trainable</code> parameters in the gradient updates.</p><p><strong>Examples</strong></p><pre><code class="language-julia hljs">g = GNNGraph([1,2,3], [2,3,1])
true</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/8dbac1712dd1835216ae2e6002dcc6e7fe8b9d83/GraphNeuralNetworks/src/layers/basic.jl#L54-L105">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.GNNLayer" href="#GraphNeuralNetworks.GNNLayer"><code>GraphNeuralNetworks.GNNLayer</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">abstract type GNNLayer end</code></pre><p>An abstract type from which graph neural network layers are derived.</p><p>See also <a href="#GraphNeuralNetworks.GNNChain"><code>GNNChain</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/8dbac1712dd1835216ae2e6002dcc6e7fe8b9d83/GraphNeuralNetworks/src/layers/basic.jl#L1-L7">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="GraphNeuralNetworks.WithGraph" href="#GraphNeuralNetworks.WithGraph"><code>GraphNeuralNetworks.WithGraph</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">WithGraph(model, g::GNNGraph; traingraph=false)</code></pre><p>A type wrapping the <code>model</code> and tying it to the graph <code>g</code>. In the forward pass, can only take feature arrays as inputs, returning <code>model(g, x...; kws...)</code>.</p><p>If <code>traingraph=false</code>, the graph&#39;s parameters won&#39;t be part of the <code>trainable</code> parameters in the gradient updates.</p><p><strong>Examples</strong></p><pre><code class="language-julia hljs">g = GNNGraph([1,2,3], [2,3,1])
x = rand(Float32, 2, 3)
model = SAGEConv(2 =&gt; 3)
wg = WithGraph(model, g)
Expand All @@ -51,4 +51,4 @@
g2 = GNNGraph([1,1,2,3], [2,4,1,1])
x2 = rand(Float32, 2, 4)
# WithGraph will ignore the internal graph if fed with a new one.
@assert wg(g2, x2) == model(g2, x2)</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/3fe2c769bbd36fa7efdf2fb0fbae0d3df03ae717/GraphNeuralNetworks/src/layers/basic.jl#L14-L39">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../gnngraph/">« GNNGraph</a><a class="docs-footer-nextpage" href="../conv/">Convolutional Layers »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 3 October 2024 07:20">Thursday 3 October 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
@assert wg(g2, x2) == model(g2, x2)</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/CarloLucibello/GraphNeuralNetworks.jl/blob/8dbac1712dd1835216ae2e6002dcc6e7fe8b9d83/GraphNeuralNetworks/src/layers/basic.jl#L14-L39">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../gnngraph/">« GNNGraph</a><a class="docs-footer-nextpage" href="../conv/">Convolutional Layers »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Saturday 12 October 2024 09:22">Saturday 12 October 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 0d5342b

Please sign in to comment.