Skip to content

Commit 68251a9

Browse files
fix GNN
1 parent e28f65e commit 68251a9

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

GNNGraphs/test/Project.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
33
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
44
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
5-
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
65
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
76
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
87
MLDataDevices = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40"
@@ -21,5 +20,3 @@ TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
2120
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
2221
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2322

24-
[compat]
25-
GPUArraysCore = "0.1"

GNNlib/src/GNNlib.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export agnn_conv,
6363
include("layers/temporalconv.jl")
6464
export a3tgcn_conv,
6565
dcgrucell_frwd,
66-
evolvegcnocell_frwd
67-
gconv_grucell_frwd,
68-
gconv_lstmcell_frwd,
66+
evolvegcnocell_frwd,
67+
gconvgrucell_frwd,
68+
gconvlstmcell_frwd,
6969
tgcn_frwd
7070

7171
include("layers/pool.jl")

GNNlib/test/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
44
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
55
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
66
GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48"
7-
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
87
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
98
MLDataDevices = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40"
109
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
@@ -19,4 +18,3 @@ TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
1918
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2019

2120
[compat]
22-
GPUArraysCore = "0.1"

GraphNeuralNetworks/src/layers/temporalconv.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function (cell::GConvGRUCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractVector)
244244
end
245245

246246
function (cell::GConvGRUCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractMatrix)
247-
return gconvgrucell_frwd(cell, g, x, h)
247+
return GNNlib.gconvgrucell_frwd(cell, g, x, h)
248248
end
249249

250250
function Base.show(io::IO, cell::GConvGRUCell)
@@ -415,7 +415,7 @@ function (cell::GConvLSTMCell)(g::GNNGraph, x::AbstractMatrix, (h, c))
415415
c = repeat(c, 1, g.num_nodes)
416416
end
417417
@assert ndims(h) == 2 && ndims(c) == 2
418-
gconvlstmcell_frwd(cell, g, x, (h, c))
418+
return GNNlib.gconvlstmcell_frwd(cell, g, x, (h, c))
419419
end
420420

421421
function Base.show(io::IO, cell::GConvLSTMCell)
@@ -544,7 +544,7 @@ function (cell::DCGRUCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractVector)
544544
end
545545

546546
function (cell::DCGRUCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractMatrix)
547-
return dcgrucell_frwd(cell, g, x, h)
547+
return GNNlib.dcgrucell_frwd(cell, g, x, h)
548548
end
549549

550550
function Base.show(io::IO, cell::DCGRUCell)
@@ -672,7 +672,7 @@ end
672672
(cell::EvolveGCNOCell)(g::GNNGraph, x::AbstractMatrix) = cell(g, x, initialstates(cell))
673673

674674
function (cell::EvolveGCNOCell)(g::GNNGraph, x::AbstractMatrix, state)
675-
return evolvegcno_frwd(cell, g, x, state.weight, state.lstm)
675+
return GNNlib.evolvegcnocell_frwd(cell, g, x, state)
676676
end
677677

678678
function Base.show(io::IO, egcno::EvolveGCNOCell)
@@ -815,7 +815,7 @@ function (cell::TGCNCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractVector)
815815
end
816816

817817
function (cell::TGCNCell)(g::GNNGraph, x::AbstractMatrix, h::AbstractMatrix)
818-
return tgcncell_frwd(cell, g, x, h)
818+
return GNNlib.tgcncell_frwd(cell, g, x, h)
819819
end
820820

821821
function Base.show(io::IO, cell::TGCNCell)

GraphNeuralNetworks/test/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
55
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
66
GNNGraphs = "aed8fd31-079b-4b5a-b342-a13352159b8c"
77
GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48"
8-
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
98
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694"
109
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1110
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
@@ -18,4 +17,3 @@ TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
1817
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1918

2019
[compat]
21-
GPUArraysCore = "0.1"

0 commit comments

Comments
 (0)