Skip to content

Commit ac6ee1c

Browse files
committed
debug debug debug
1 parent 08377a5 commit ac6ee1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/nn/lux.jl

+8
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,32 @@ end
4242
cst2 = Reactant.to_rarray(st)
4343
cnoisy = Reactant.ConcreteRArray(noisy)
4444

45+
@info @__LINE__
4546
f = Reactant.compile((a, b, c, d) -> first(a(b, c, d)), (cmodel, cnoisy, cps, cst))
47+
@info @__LINE__
4648

4749
comp = f(cmodel, cnoisy, cps, cst)
50+
@info @__LINE__
4851

4952
@test comp origout atol = 1e-3 rtol = 1e-2
5053

5154
target = onehotbatch(truth, [true, false]) # 2×1000 OneHotMatrix
55+
@info @__LINE__
5256

5357
ctarget = Reactant.ConcreteRArray(Array{Float32}(target))
5458
# ctarget = Reactant.to_rarray(target)
59+
@info @__LINE__
5560

5661
res, dps = gradient_loss_function(model, noisy, target, ps, st)
62+
@info @__LINE__
5763

5864
compiled_gradient = Reactant.compile(
5965
gradient_loss_function, (cmodel, cnoisy, ctarget, cps, cst2)
6066
)
67+
@info @__LINE__
6168

6269
res_reactant, dps_reactant = compiled_gradient(cmodel, cnoisy, ctarget, cps, cst2)
70+
@info @__LINE__
6371

6472
@test res res_reactant atol = 1e-3 rtol = 1e-2
6573
for (dps1, dps2) in zip(fleaves(dps), fleaves(dps_reactant))

0 commit comments

Comments
 (0)