Skip to content

Commit 80818ee

Browse files
Merge pull request #1181 from ChrisRackauckas-Claude/fix-minibatch-test-float64
test/minibatch: use Float64 for time, state, and parameters
2 parents c5a4c13 + afa4ad3 commit 80818ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/minibatch.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ function callback(state, l) #callback function to observe training
2424
return l < 1.0e-2
2525
end
2626

27-
u0 = Float32[200.0]
27+
u0 = [200.0]
2828
datasize = 30
29-
tspan = (0.0f0, 1.5f0)
29+
tspan = (0.0, 1.5)
3030

3131
t = range(tspan[1], tspan[2], length = datasize)
3232
true_prob = ODEProblem(true_sol, u0, tspan)
3333
ode_data = Array(solve(true_prob, Tsit5(), saveat = t))
3434

3535
ann = Lux.Chain(Lux.Dense(1, 8, tanh), Lux.Dense(8, 1, tanh))
3636
pp, st = Lux.setup(rng, ann)
37-
pp = ComponentArray(pp)
37+
pp = ComponentArray{Float64}(pp)
3838

3939
prob = ODEProblem{false}(dudt_, u0, tspan, pp)
4040

0 commit comments

Comments
 (0)