We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963adba commit 98b9af0Copy full SHA for 98b9af0
main.jl
@@ -49,14 +49,14 @@ elseif length(ARGS) == 3 && ARGS[1] == "--run"
49
catch e
50
if e isa ADIncorrectException
51
# First check for completely incorrect ones
52
- for (a, b) in zip(result.grad_expected, result.grad_actual)
+ for (a, b) in zip(e.grad_expected, e.grad_actual)
53
if !isnan(a) && !isnan(b) && abs(a - b) > 1e-6
54
println("wrong")
55
exit()
56
end
57
58
# If not, check for NaN's and report those
59
- if any(isnan, result.grad_expected) || any(isnan, result.grad_actual)
+ if any(isnan, e.grad_expected) || any(isnan, e.grad_actual)
60
println("NaN")
61
else
62
# Something else went wrong, shouldn't happen
0 commit comments