Open avik-pal opened 6 months ago
Awesome!
The warning indicates it is attempting to promote the value type of X
as well as the AbstractExpressionNode
. Converting the node can be exensive, especially if it’s a GraphNode
, as it needs to make a copy of the whole tree.
I wonder if that means it’s also converting the Node{T}
to Node{Dual{T}}
and if that’s an issue at all. But if not an issue we could just disable the warning.
Turns out ForwardDiff.jl already works with DynamicExpressions, but we would want to turn off the type mismatch warnings.