Skip to content

Commit 25caf62

Browse files
committed
Measure better inferencetime
1 parent 14e7a59 commit 25caf62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/train.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ function compute_epost(rhs, sciml_solver, ps, tspan, (u, t), tsave, dt)
451451
save_start = false,
452452
dt = dt,
453453
)
454+
inf_time = time() - t0
454455

455456
e = 0.0
456457
es = []
@@ -469,6 +470,6 @@ function compute_epost(rhs, sciml_solver, ps, tspan, (u, t), tsave, dt)
469470
end
470471
end
471472

472-
return es, time() - t0
473+
return es, inf_time
473474

474475
end

0 commit comments

Comments
 (0)