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 e8b7944 commit 963adbaCopy full SHA for 963adba
main.jl
@@ -47,7 +47,7 @@ elseif length(ARGS) == 3 && ARGS[1] == "--run"
47
# If reached here - nothing went wrong
48
@printf("%.3f", result.time_vs_primal)
49
catch e
50
- if result.error isa ADIncorrectException
+ if e isa ADIncorrectException
51
# First check for completely incorrect ones
52
for (a, b) in zip(result.grad_expected, result.grad_actual)
53
if !isnan(a) && !isnan(b) && abs(a - b) > 1e-6
0 commit comments