We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebdb73b commit dfcb468Copy full SHA for dfcb468
examples/neural_ode.jl
@@ -4,9 +4,11 @@ using Flux: onehotbatch, onecold
4
using Flux.Losses: logitcrossentropy
5
using Statistics: mean
6
using MLDatasets: Cora
7
+using CUDA
8
+# CUDA.allowscalar(false) # Some scalar indexing is still done by DiffEqFlux
9
10
# device = cpu # `gpu` not working yet
-device = gpu
11
+device = CUDA.functional() ? gpu : cpu
12
13
# LOAD DATA
14
data = Cora.dataset()
0 commit comments