Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/examples/ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ using OrdinaryDiffEq, SciMLSensitivity, Lux, Optimisers, Zygote, DiffEqGPU, CUDA

CUDA.allowscalar(false)

# A tiny Lux model whose parameters are what we train. It maps a constant
# input to the two ODE parameters.
# A tiny Lux model whose trainable parameters become the two ODE parameters
# (a `Dense(1 => 2)` applied to a constant input).
const dense = Dense(1 => 2)
const x = Float32[1.0]
rng = Random.default_rng()
Random.seed!(rng, 0)
Random.seed!(rng, 0) # reproducibility
ps, st = Lux.setup(rng, dense)

u0 = Float32[3.0]
Expand Down
Loading