Skip to content

Commit 4b49eac

Browse files
Update GPUs.md
1 parent ce1f153 commit 4b49eac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/GPUs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ sol_gpu = solve(prob_neuralode_gpu, Tsit5(), saveat = tsteps)
6161
## Neural ODE Example
6262

6363
Here is the full neural ODE example. Note that we use the `gpu` function so that the
64-
same code works on CPUs and GPUs, dependent on `using CuArrays`.
64+
same code works on CPUs and GPUs, dependent on `using CUDA`.
6565

6666
```julia
67-
using DiffEqFlux, OrdinaryDiffEq, Flux, Optim, Plots, CuArrays, DiffEqSensitivity
68-
CuArrays.allowscalar(false) # Makes sure no slow operations are occuring
67+
using DiffEqFlux, OrdinaryDiffEq, Flux, Optim, Plots, CUDA, DiffEqSensitivity
68+
CUDA.allowscalar(false) # Makes sure no slow operations are occuring
6969

7070
# Generate Data
7171
u0 = Float32[2.0; 0.0]

0 commit comments

Comments
 (0)