Skip to content

Commit 7b339fa

Browse files
polishing
1 parent 3c5b826 commit 7b339fa

File tree

7 files changed

+6
-31
lines changed

7 files changed

+6
-31
lines changed

GNNlib/Project.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1212
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
1313
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1414
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
15-
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1615
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
17-
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
1816
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1917
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2018
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2119
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
22-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
2320

2421
[weakdeps]
2522
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
@@ -38,14 +35,11 @@ KrylovKit = "0.6, 0.7"
3835
LinearAlgebra = "1"
3936
MLDatasets = "0.7"
4037
MLUtils = "0.4"
41-
MacroTools = "0.5"
4238
NNlib = "0.9"
43-
NearestNeighbors = "0.4"
4439
Random = "1"
4540
Reexport = "1"
4641
SparseArrays = "1"
4742
Statistics = "1"
48-
StatsBase = "0.34"
4943
cuDNN = "1"
5044
julia = "1.10"
5145

GNNlib/src/GNNlib.jl

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

33
using Statistics: mean
44
using LinearAlgebra, Random
5-
using Base: tail
6-
using MacroTools: @forward
75
using MLUtils
86
using NNlib
97
using NNlib: scatter, gather

Project.toml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,17 @@ authors = ["Carlo Lucibello and contributors"]
44
version = "0.6.19"
55

66
[deps]
7-
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
87
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
98
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
109
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1110
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
1211
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
13-
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
14-
KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
1512
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
16-
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1713
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1814
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
19-
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
2015
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2116
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
22-
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2317
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
24-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
2518

2619
[weakdeps]
2720
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
@@ -30,26 +23,18 @@ CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
3023
GraphNeuralNetworksCUDAExt = "CUDA"
3124

3225
[compat]
33-
Adapt = "3, 4"
3426
CUDA = "4, 5"
3527
ChainRulesCore = "1"
3628
DataStructures = "0.18"
3729
Flux = "0.14"
3830
Functors = "0.4.1"
39-
Graphs = "1.4"
4031
GNNGraphs = "1.0"
41-
KrylovKit = "0.6, 0.7, 0.8"
4232
LinearAlgebra = "1"
43-
MLDatasets = "0.7"
44-
MLUtils = "0.4"
4533
MacroTools = "0.5"
4634
NNlib = "0.9"
47-
NearestNeighbors = "0.4"
4835
Random = "1"
4936
Reexport = "1"
50-
SparseArrays = "1"
5137
Statistics = "1"
52-
StatsBase = "0.34"
5338
cuDNN = "1"
5439
julia = "1.10"
5540

@@ -59,11 +44,14 @@ CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
5944
ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a"
6045
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
6146
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
47+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
6248
InlineStrings = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
6349
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
50+
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
51+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
6452
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6553
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
6654
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
6755

6856
[targets]
69-
test = ["Test", "Adapt", "DataFrames", "InlineStrings", "Zygote", "FiniteDifferences", "ChainRulesTestUtils", "MLDatasets", "CUDA", "cuDNN"]
57+
test = ["Test", "MLUtils", "Adapt", "DataFrames", "InlineStrings", "SparseArrays", "Graphs", "Zygote", "FiniteDifferences", "ChainRulesTestUtils", "MLDatasets", "CUDA", "cuDNN"]

src/GraphNeuralNetworks.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ module GraphNeuralNetworks
22

33
using Statistics: mean
44
using LinearAlgebra, Random
5-
using Base: tail
65
using Flux
76
using Flux: glorot_uniform, leakyrelu, GRUCell, @functor, batch
87
using MacroTools: @forward
9-
using MLUtils
108
using NNlib
119
using NNlib: scatter, gather
1210
using ChainRulesCore
1311
using Reexport
14-
using SparseArrays, Graphs # not needed but if removed Documenter will complain
12+
using DataStructures: nlargest
1513

1614
@reexport using GNNGraphs
1715
using GNNGraphs: COO_T, ADJMAT_T, SPARSE_T,

src/layers/heteroconv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function _reduceby_node_t(aggr, outs, ntypes)
7878
end
7979
# workaround to provide the aggregation once per unique node type,
8080
# gradient is not needed
81-
unique_ntypes = Flux.ChainRulesCore.ignore_derivatives() do
81+
unique_ntypes = ChainRulesCore.ignore_derivatives() do
8282
unique(ntypes)
8383
end
8484
vals = [_reduce(node_t) for node_t in unique_ntypes]

src/layers/pool.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using DataStructures: nlargest
2-
31
@doc raw"""
42
GlobalPool(aggr)
53

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ using Flux: gpu, @functor
88
using LinearAlgebra, Statistics, Random
99
using NNlib
1010
import MLUtils
11-
import StatsBase
1211
using SparseArrays
1312
using Graphs
1413
using Zygote

0 commit comments

Comments
 (0)