Skip to content

Commit 6814a58

Browse files
move to Flux 0.14 (#316)
* move to Flux 0.14 * cleanup * bump CI
1 parent d8479a7 commit 6814a58

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
version:
17-
- '1.7' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
17+
# - '1.9' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
1818
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
1919
- 'nightly'
2020
os:

Project.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,32 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1616
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1717
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1818
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
19-
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d"
2019
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
2120
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2221
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2322
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2423
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2524
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
25+
cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"
2626

2727
[compat]
2828
Adapt = "3"
29-
CUDA = "3.3, 4"
29+
CUDA = "4"
3030
ChainRulesCore = "1"
3131
DataStructures = "0.18"
32-
Flux = "0.13.9"
32+
Flux = "0.14"
3333
Functors = "0.4.1"
3434
Graphs = "1.4"
3535
KrylovKit = "0.6"
3636
MLDatasets = "0.7"
37-
MLUtils = "0.3, 0.4"
37+
MLUtils = "0.4"
3838
MacroTools = "0.5"
39-
NNlib = "0.8, 0.9"
40-
NNlibCUDA = "0.2"
39+
NNlib = "0.9"
4140
NearestNeighbors = "0.4"
4241
Reexport = "1"
43-
StatsBase = "0.33, 0.34"
44-
julia = "1.7"
42+
StatsBase = "0.34"
43+
cuDNN = "1"
44+
julia = "1.9"
4545

4646
[extras]
4747
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

docs/src/gnngraph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ g′ = add_edges(g, [1, 2], [2, 3]) # add edges 1->2 and 2->3
220220
Move a `GNNGraph` to a CUDA device using `Flux.gpu` method.
221221

222222
```julia
223-
using Flux: gpu
223+
using CUDA, Flux
224224

225-
g_gpu = g |> gpu
225+
g_gpu = g |> Flux.gpu
226226
```
227227

228228
## Integration with Graphs.jl

src/GNNGraphs/gnngraph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ functionality from that library.
6666
# Examples
6767
6868
```julia
69-
using Flux, GraphNeuralNetworks
69+
using Flux, GraphNeuralNetworks, CUDA
7070
7171
# Construct from adjacency list representation
7272
data = [[2,3], [1,4,5], [1], [2,5], [2,4]]

src/GraphNeuralNetworks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using Flux
88
using Flux: glorot_uniform, leakyrelu, GRUCell, @functor, batch
99
using MacroTools: @forward
1010
using MLUtils
11-
using NNlib, NNlibCUDA
11+
using NNlib
1212
using NNlib: scatter, gather
1313
using ChainRulesCore
1414
using Reexport

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
using CUDA
12
using GraphNeuralNetworks
23
using GraphNeuralNetworks.GNNGraphs: sort_edge_index
34
using GraphNeuralNetworks.GNNGraphs: getn, getdata
45
using Functors
56
using Flux
6-
using CUDA
77
using Flux: gpu, @functor
88
using LinearAlgebra, Statistics, Random
99
using NNlib

0 commit comments

Comments
 (0)