Skip to content

Commit

Permalink
Merge pull request #418 from SciML/ChrisRackauckas-patch-2
Browse files Browse the repository at this point in the history
Update Kolmogorov equations
  • Loading branch information
ChrisRackauckas authored Jul 7, 2021
2 parents 1d6157c + 160b6df commit 7b80898
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/advanced/03-kolmogorov_equations.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ Now lets define our model m and the optimiser
```julia
m = Chain(Dense(d, 64, elu),Dense(64, 128, elu),Dense(128 , 16 , elu) , Dense(16 , 1))
use_gpu = false
if CUDAnative.functional() == true
m = fmap(CuArrays.cu , m)
if CUDA.functional() == true
m = fmap(CUDA.cu , m)
use_gpu = true
end
opt = Flux.ADAM(0.0005)
```
And then finally call the solver
```julia
@time sol = solve(prob, NeuralNetDiffEq.NNKolmogorov(m, opt, sdealg, ensemblealg), verbose = true, dt = dt,
@time sol = solve(prob, NeuralPDE.NNKolmogorov(m, opt, sdealg, ensemblealg), verbose = true, dt = dt,
dx = dx , trajectories = trajectories , abstol=1e-6, maxiters = 1000 , use_gpu = use_gpu)
```
## Analyzing the solution
Expand Down

0 comments on commit 7b80898

Please sign in to comment.