Skip to content

Commit 54fe5d0

Browse files
authored
Ignore rules with more than two arguments (#530)
* ignore rules with more than two arguments
1 parent 6b393f4 commit 54fe5d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dual.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ for (M, f, arity) in DiffRules.diffrules()
396396
elseif arity == 2
397397
eval(binary_dual_definition(M, f))
398398
else
399-
error("ForwardDiff currently only knows how to autogenerate Dual definitions for unary and binary functions.")
399+
# error("ForwardDiff currently only knows how to autogenerate Dual definitions for unary and binary functions.")
400+
# However, the presence of N-ary rules need not cause any problems here, they can simply be ignored.
400401
end
401402
end
402403

0 commit comments

Comments
 (0)