Skip to content

Commit 6a5671e

Browse files
gpu working
1 parent f07b028 commit 6a5671e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

examples/Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
66
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694"
77
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
88
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
9-
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
109
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1110
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d"

examples/neural_ode.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ node = NeuralODE(
3636
)
3737

3838
model = GNNChain(GCNConv(nin => nhidden, relu),
39-
Dropout(0.5),
40-
node,
41-
diffeqarray_to_array,
42-
GCNConv(nhidden => nout))
39+
Dropout(0.5),
40+
node,
41+
diffeqarray_to_array,
42+
GCNConv(nhidden => nout))
4343

4444
# Loss
4545
loss(x, y) = logitcrossentropy(model(g, x), y)
@@ -55,6 +55,6 @@ opt = ADAM(0.01)
5555
## Training Loop
5656
for epoch in 1:epochs
5757
gs = gradient(() -> loss(X, y), ps)
58-
Flux.Optimisers.update!(opt, ps, gs)
58+
Flux.Optimise.update!(opt, ps, gs)
5959
@show(accuracy(X, y))
6060
end

0 commit comments

Comments
 (0)