Skip to content

Commit f6b95fc

Browse files
move mldatasets2gnngraph (#458)
* GNNlib depends on GNNGraphs * move mldatasets2gnngraph * dev * update * fix * bounds * no bound bump
1 parent 622d592 commit f6b95fc

File tree

12 files changed

+21
-81
lines changed

12 files changed

+21
-81
lines changed

GNNGraphs/src/GNNGraphs.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,7 @@ export sort_edge_index, color_refinement
108108
include("gatherscatter.jl")
109109
# _gather, _scatter
110110

111+
include("mldatasets.jl")
112+
export mldataset2gnngraph
113+
111114
end #module
File renamed without changes.
File renamed without changes.

GNNGraphs/test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ tests = [
3636
"sampling",
3737
"gnnheterograph",
3838
"temporalsnapshotsgnngraph",
39+
"mldatasets",
3940
"ext/SimpleWeightedGraphs"
4041
]
4142

GNNlib/Project.toml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
name = "GNNlib"
22
uuid = "a6a84749-d869-43f8-aacc-be26a1996e48"
33
authors = ["Carlo Lucibello and contributors"]
4-
version = "0.1.0"
4+
version = "0.2.0-DEV"
55

66
[deps]
7-
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
87
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
98
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
10-
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
9+
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
1110
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
12-
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
1311
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1412
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1513
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1614
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
17-
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
18-
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1915
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2016

2117
[weakdeps]
@@ -25,36 +21,19 @@ CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
2521
GNNlibCUDAExt = "CUDA"
2622

2723
[compat]
28-
Adapt = "3, 4"
24+
ChainRulesCore = "1.24"
2925
CUDA = "4, 5"
30-
ChainRulesCore = "1"
3126
DataStructures = "0.18"
32-
Functors = "0.4.1"
33-
Graphs = "1.4"
34-
KrylovKit = "0.6, 0.7"
27+
GNNGraphs = "1.0"
3528
LinearAlgebra = "1"
36-
MLDatasets = "0.7"
3729
MLUtils = "0.4"
3830
NNlib = "0.9"
3931
Random = "1"
40-
Reexport = "1"
41-
SparseArrays = "1"
4232
Statistics = "1"
43-
cuDNN = "1"
4433
julia = "1.10"
4534

4635
[extras]
47-
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
48-
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
49-
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
50-
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
51-
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
52-
InlineStrings = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
53-
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
54-
SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622"
5536
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
56-
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
57-
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
5837

5938
[targets]
60-
test = ["Test", "Adapt", "DataFrames", "InlineStrings", "SimpleWeightedGraphs", "Zygote", "FiniteDifferences", "ChainRulesTestUtils", "MLDatasets", "CUDA", "cuDNN"]
39+
test = ["Test"]

GNNlib/src/GNNlib.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ module GNNlib
22

33
using Statistics: mean
44
using LinearAlgebra, Random
5-
using MLUtils
5+
using MLUtils: zeros_like
66
using NNlib
77
using NNlib: scatter, gather
8-
using ChainRulesCore
9-
using SparseArrays, Graphs # not needed but if removed Documenter will complain
108
using DataStructures: nlargest
11-
using Reexport: @reexport
9+
using ChainRulesCore: @non_differentiable
1210
using GNNGraphs
1311
using .GNNGraphs: COO_T, ADJMAT_T, SPARSE_T,
1412
check_num_nodes, check_num_edges,
@@ -33,9 +31,7 @@ export
3331
xi_sub_xj,
3432
xj_sub_xi,
3533
e_mul_xj,
36-
w_mul_xj,
37-
# mldatasets
38-
mldataset2gnngraph
34+
w_mul_xj
3935

4036
## The following methods are defined but not exported
4137

@@ -80,7 +76,6 @@ include("layers/conv.jl")
8076
include("layers/temporalconv.jl")
8177
include("layers/pool.jl")
8278
include("msgpass.jl")
83-
include("mldatasets.jl")
8479

8580
end #module
8681

GNNlib/src/layers/conv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function gatv2_message(l, Wxi, Wxj, e)
199199
end
200200

201201

202-
# TODO remove after https://github.com/JuliaDiff/ChainRules.jl/pull/521
202+
# TODO PIRACY! remove after https://github.com/JuliaDiff/ChainRules.jl/pull/521
203203
@non_differentiable fill!(x...)
204204

205205
function gated_graph_conv(l, g::GNNGraph, H::AbstractMatrix{S}) where {S <: Real}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5555
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
5656

5757
[targets]
58-
test = ["Test", "Adapt", "DataFrames", "InlineStrings", "SparseArrays", "Graphs", "Zygote", "FiniteDifferences", "ChainRulesTestUtils", "MLDatasets", "CUDA", "cuDNN"]
58+
test = ["Test", "MLDatasets", "Adapt", "DataFrames", "InlineStrings", "SparseArrays", "Graphs", "Zygote", "FiniteDifferences", "ChainRulesTestUtils", "CUDA", "cuDNN"]

docs/src/dev.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Developer Notes
22

3-
## Develop Monorepo
3+
## Develop and Managing the Monorepo
44

5+
### Development
56
GraphNeuralNetworks.jl is package hosted in a monorepo that contains multiple packages.
67
The GraphNeuralNetworks.jl package depends on GNNGraphs.jl, also hosted in the same monorepo.
78

@@ -11,8 +12,12 @@ pkg> activate .
1112
pkg> dev ./GNNGraphs
1213
```
1314

15+
### Versions and Tagging
16+
Each PR should update the version number in the Porject.toml file of each involved package if needed by semnatic versioning. For instance, when adding new features GNNGraphs could move from "1.17.5" to "1.18.0-DEV". The "DEV" will be removed when the package is tagged and released. Pay also attention to updating
17+
the compat bounds, e.g. GraphNeuralNetworks might require a newer version of GNNGraphs.
1418

15-
For generating the documentation locally instead
19+
### Generate Documentation Locally
20+
For generating the documentation locally
1621
```
1722
cd docs
1823
julia

src/GraphNeuralNetworks.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ include("layers/heteroconv.jl")
9393
include("layers/temporalconv.jl")
9494
include("layers/pool.jl")
9595
include("msgpass.jl")
96-
include("mldatasets.jl")
9796
include("deprecations.jl")
9897

9998
end

0 commit comments

Comments
 (0)