Skip to content

Commit d88f6e3

Browse files
committed
Merge branch 'master' into gat-conv
2 parents a5651b9 + 212c7d9 commit d88f6e3

48 files changed

Lines changed: 1345 additions & 94 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/TagBot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- GraphNeuralNetworks
2727
- GNNLux
2828
steps:
29-
- uses: JuliaRegistries/TagBot@cded32665b34ca0496d3ac10a67d08ddfc726963 # v1.25.11
29+
- uses: JuliaRegistries/TagBot@87cc4cc2b4639f6c743f5772f376a32914060732 # v1.25.15
3030
with:
3131
subdir: ${{ matrix.subdir }}
3232
token: ${{ secrets.GITHUB_TOKEN }}

‎.gitignore‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Manifest.toml
88
.vscode
99
LocalPreferences.toml
1010
.DS_Store
11-
docs/src/democards/gridtheme.css
1211
test.jl
1312
docs/build
1413
GNNGraphs/docs/build
@@ -17,7 +16,8 @@ GNNLux/docs/build
1716
GraphNeuralNetworks/docs/build
1817
GraphNeuralNetworks/docs/src/GNNGraphs
1918
GraphNeuralNetworks/docs/src/GNNlib
19+
# Copied from GraphNeuralNetworks/docs by GNNLux/docs/make.jl
20+
GNNLux/docs/src/tutorials/*/assets
2021
tutorials/docs/build
21-
docs/src/tutorials # generated by DemoCards from docs/tutorials/
2222
prova.jl
2323
pyg.ipynb

‎CHANGELOG.md‎

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,34 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
1010
and the packages adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1111
Entries link to the pull request that introduced them.
1212

13-
## GNNGraphs.jl — Unreleased (towards 1.6.0)
13+
## GNNGraphs.jl 1.6.0 - 2026-11-04
1414

1515
**Added**
1616
- Added a `Mooncake` package extension, so that Mooncake can differentiate on CUDA through `add_self_loops` and through adjacency-matrix graphs. Float edge weights of adjacency-matrix graphs stay differentiable ([#704]).
1717

1818
**Fixed**
19+
- Fixed `scaled_laplacian` (and so `ChebConv`) crashing with a segmentation fault on AMDGPU graphs: the eigensolver's start vector was created on the CPU, so CPU BLAS was handed GPU memory. It is now created on the same device as the graph ([#722]).
1920
- Added an `EnzymeCore` package extension marking `scaled_laplacian` inactive for Enzyme, matching its existing `@non_differentiable` ChainRules declaration. Enzyme previously differentiated the Krylov eigensolve inside it and failed; this unblocks `ChebConv`, `GConvGRUCell` and `GConvLSTMCell` ([#706]).
2021
- Enzyme can now differentiate through the adjacency-matrix → COO graph conversion: a new internal keyword-free helper `_to_coo_graph` avoids the union-typed keyword handling of the `GNNGraph(g; graph_type)` constructor and of `to_coo`, which Enzyme's type analysis cannot compile. Together with upstream fixes in Enzyme ≥ 0.13.197 this removes the `EnzymeInternalError` crash on `:dense`/`:sparse` graphs ([#703]).
2122

22-
## GNNLux.jl — Unreleased (towards 0.2.0)
23+
## GNNLux.jl 0.3.0 - 2026-11-04
24+
25+
**Fixed**
26+
- `GNNChain` now returns its state with the same structure it receives, `(; layers = (; layer_1, ...))`, as the Lux layer interface requires. It previously returned the per-layer states without the `layers` wrapper, so feeding the returned state back into the chain (as `Lux.Training.single_train_step!` does) failed with a `FieldError`. This is breaking for code that worked around the bug by re-wrapping the state as `(; layers = st)`, as the docs examples did: drop the wrapper.
27+
28+
## GNNlib.jl 1.4.1 - 2026-11-04
29+
30+
**Fixed**
31+
- Fixed `propagate(w_mul_xj, g, +)` ignoring the edge weights on CUDA and AMDGPU: the GPU fallback passed no weights to `w_mul_xj`, so layers using edge weights (e.g. `GCNConv` with `use_edge_weight = true`) computed unweighted messages on the GPU ([#718]).
32+
- Fixed `Enzyme.gradient` failing when differentiating `GCNConv`, `SGConv` and `TAGConv` on `:dense`/`:sparse` adjacency graphs: their adjacency-matrix fallbacks now convert via the Enzyme-differentiable `GNNGraphs._to_coo_graph` instead of the keyword `GNNGraph` constructor. Requires GNNGraphs ≥ 1.6.0 and, for Enzyme, Enzyme ≥ 0.13.197 ([#703]).
33+
34+
## GraphNeuralNetworks.jl 1.1.1 - 2026-11-04
35+
36+
**Changed**
37+
- `GNNRecurrence` now hands each cell an indexed time slice instead of an `eachslice` view, matching the Lux frontend. Enzyme's type analysis fails on `SubArray` cell inputs, so this unblocks `DCGRU`, `EvolveGCNO`, `GConvGRU` and `GConvLSTM` under Enzyme ([#707]).
38+
- The recurrent temporal cells now delegate their forward-pass math to shared `GNNlib` functions (requires GNNlib ≥ 1.4); the layer behaviour is unchanged ([#696]).
39+
40+
## GNNLux.jl 0.2.0 — 2026-07-22
2341

2442
**Added**
2543
- Added pooling layers (`GlobalPool`, `GlobalAttentionPool`, `TopKPool`) ([#576]).
@@ -33,17 +51,6 @@ Entries link to the pull request that introduced them.
3351
**Removed**
3452
- Removed the `A3TGCN` layer, mirroring its removal from the Flux frontend ([#696]).
3553

36-
## GNNlib.jl — Unreleased (towards 1.4.1)
37-
38-
**Fixed**
39-
- Fixed `Enzyme.gradient` failing when differentiating `GCNConv`, `SGConv` and `TAGConv` on `:dense`/`:sparse` adjacency graphs: their adjacency-matrix fallbacks now convert via the Enzyme-differentiable `GNNGraphs._to_coo_graph` instead of the keyword `GNNGraph` constructor. Requires GNNGraphs ≥ 1.5.2 and, for Enzyme, Enzyme ≥ 0.13.197 ([#703]).
40-
41-
## GraphNeuralNetworks.jl — Unreleased (towards 1.1.1)
42-
43-
**Changed**
44-
- `GNNRecurrence` now hands each cell an indexed time slice instead of an `eachslice` view, matching the Lux frontend. Enzyme's type analysis fails on `SubArray` cell inputs, so this unblocks `DCGRU`, `EvolveGCNO`, `GConvGRU` and `GConvLSTM` under Enzyme ([#707]).
45-
- The recurrent temporal cells now delegate their forward-pass math to shared `GNNlib` functions (requires GNNlib ≥ 1.4); the layer behaviour is unchanged ([#696]).
46-
4754
## GNNlib.jl 1.4.0 — 2026-07-22
4855

4956
**Added**
@@ -238,4 +245,6 @@ Lux implementations of the graph convolutional, pooling, and temporal layers
238245
[#704]: https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/pull/704
239246
[#707]: https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/pull/707
240247
[#706]: https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/pull/706
248+
[#722]: https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/pull/722
249+
[#718]: https://github.com/JuliaGraphs/GraphNeuralNetworks.jl/pull/718
241250
[FluxML/Zygote.jl#1662]: https://github.com/FluxML/Zygote.jl/issues/1662

‎GNNGraphs/Project.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GNNGraphs"
22
uuid = "aed8fd31-079b-4b5a-b342-a13352159b8c"
3-
version = "1.6.0-DEV"
3+
version = "1.6.0"
44
authors = ["Carlo Lucibello and contributors"]
55

66
[workspace]

‎GNNGraphs/docs/Project.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ GNNGraphs = {path = ".."}
1212

1313
[compat]
1414
DocumenterInterLinks = "1.1.0"
15+
MLDatasets = "0.7"

‎GNNGraphs/src/query.jl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,10 @@ function _eigmax(A)
508508
KrylovKit.eigsolve(Symmetric(A), x0, 1, :LR)[1][1] # also eigs(A, x0, nev, mode) available
509509
end
510510

511-
_rand_dense_vector(A::AbstractMatrix{T}) where {T} = randn(float(T), size(A, 1))
511+
# On the same device as `A`, otherwise a GPU `A` would be passed to CPU BLAS.
512+
_rand_dense_vector(A::AbstractMatrix{T}) where {T} = randn!(similar(A, float(T), size(A, 1)))
513+
# `similar` would give a sparse vector here.
514+
_rand_dense_vector(A::AbstractSparseMatrix{T}) where {T} = randn(float(T), size(A, 1))
512515

513516
# Eigenvalues for cuarray don't seem to be well supported.
514517
# https://github.com/JuliaGPU/CUDA.jl/issues/154

‎GNNGraphs/test/Project.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ GNNGraphs = {path = ".."}
2727

2828
[compat]
2929
Enzyme = "0.13.197"
30+
MLDatasets = "0.7"
3031
Mooncake = "0.5.24"
3132
NNlib = "0.9.38"
3233
StableRNGs = "1.0.4"

‎GNNLux/Project.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GNNLux"
22
uuid = "e8545f4d-a905-48ac-a8c4-ca114b98986d"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["Carlo Lucibello and contributors"]
55

66
[workspace]

‎GNNLux/docs/Project.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
1414
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1515
OneHotArrays = "0b1bfda6-eb8a-41d2-88d8-f5af5cad476f"
1616
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
17+
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1718
TSne = "24678dba-d5e9-5843-a4c6-250288b04835"
1819
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1920

@@ -24,4 +25,5 @@ GNNlib = {path = "../../GNNlib"}
2425

2526
[compat]
2627
DocumenterInterLinks = "1.1.0"
28+
MLDatasets = "0.7"
2729
OneHotArrays = "0.2.11"

‎GNNLux/docs/make.jl‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ cp(joinpath(@__DIR__, "../../GNNGraphs/docs/src"),
3030
cp(joinpath(@__DIR__, "../../GNNlib/docs/src"),
3131
joinpath(@__DIR__, "src/GNNlib"), force=true)
3232

33+
# Copy the tutorial images from the GNN docs, whose tutorials share them. Also removed at the end
34+
const TUTORIAL_SECTIONS = ["beginner_tutorials", "intermediate_tutorials"]
35+
for section in TUTORIAL_SECTIONS
36+
cp(joinpath(@__DIR__, "../../GraphNeuralNetworks/docs/src/tutorials", section, "assets"),
37+
joinpath(@__DIR__, "src/tutorials", section, "assets"), force=true)
38+
end
39+
3340
makedocs(;
3441
modules = [GNNLux, GNNGraphs, GNNlib],
3542
plugins = [interlinks],
3643
format = Documenter.HTML(; mathengine,
3744
prettyurls = get(ENV, "CI", nothing) == "true",
38-
assets = [],
3945
size_threshold=nothing,
4046
size_threshold_warn=2000000),
4147
sitename = "GNNLux.jl",
@@ -53,10 +59,13 @@ makedocs(;
5359
],
5460

5561
"Tutorials" => [
56-
"Introductory tutorials" => [
57-
"Hands on" => "tutorials/gnn_intro.md",
58-
"Node Classification" => "tutorials/node_classification.md",
59-
"Graph Classification" => "tutorials/graph_classification.md",
62+
"Beginner tutorials" => [
63+
"Hands on" => "tutorials/beginner_tutorials/gnn_intro.md",
64+
"Node Classification" => "tutorials/beginner_tutorials/node_classification.md",
65+
"Graph Classification" => "tutorials/beginner_tutorials/graph_classification.md",
66+
],
67+
"Intermediate tutorials" => [
68+
"Traffic Prediction" => "tutorials/intermediate_tutorials/traffic_prediction.md",
6069
],
6170
],
6271

@@ -85,9 +94,12 @@ makedocs(;
8594
# "Developer guide" => "dev.md",
8695
],
8796
)
88-
97+
8998
rm(joinpath(@__DIR__, "src/GNNGraphs"), force=true, recursive=true)
9099
rm(joinpath(@__DIR__, "src/GNNlib"), force=true, recursive=true)
100+
for section in TUTORIAL_SECTIONS
101+
rm(joinpath(@__DIR__, "src/tutorials", section, "assets"), force=true, recursive=true)
102+
end
91103

92104
deploydocs(
93105
repo = "github.com/JuliaGraphs/GraphNeuralNetworks.jl",

0 commit comments

Comments
 (0)