more informative
This commit is contained in:
parent
96d1c55263
commit
94e38c05b8
@ -8,8 +8,8 @@ function train!(m, data, opt; cb = () -> ())
|
|||||||
cb = tocb(cb)
|
cb = tocb(cb)
|
||||||
@progress for x in data
|
@progress for x in data
|
||||||
l = m(x...)
|
l = m(x...)
|
||||||
isinf(l.data[]) && error("Inf")
|
isinf(l.data[]) && error("Loss is Inf")
|
||||||
isnan(l.data[]) && error("NaN")
|
isnan(l.data[]) && error("Loss is NaN")
|
||||||
back!(l)
|
back!(l)
|
||||||
opt()
|
opt()
|
||||||
cb()
|
cb()
|
||||||
|
Loading…
Reference in New Issue
Block a user