Skip to content

Commit

Permalink
Merge pull request #572 from SciML/ap/minibatch-path
Browse files Browse the repository at this point in the history
Fix #570
  • Loading branch information
Vaibhavdixit02 authored Jun 17, 2021
2 parents 2f1bfbc + ad2aeb5 commit fa82cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/examples/minibatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ode_data = Array(solve(true_prob, Tsit5(), saveat=t))
prob = ODEProblem{false}(dudt_, u0, tspan, θ)

k = 10
train_loader = Flux.Data.DataLoader(ode_data, t, batchsize = k)
train_loader = Flux.Data.DataLoader((ode_data, t), batchsize = k)

for (x, y) in train_loader
@show x
Expand Down Expand Up @@ -154,7 +154,7 @@ ode_data = Array(solve(true_prob, Tsit5(), saveat=t))
prob = ODEProblem{false}(dudt_, u0, tspan, θ)

k = 10
train_loader = Flux.Data.DataLoader(ode_data, t, batchsize = k)
train_loader = Flux.Data.DataLoader((ode_data, t), batchsize = k)
for (x, y) in train_loader
@show x
@show y
Expand Down

0 comments on commit fa82cdb

Please sign in to comment.