diff --git a/src/diff.jl b/src/diff.jl index 81ac4e9e2..b012d041b 100644 --- a/src/diff.jl +++ b/src/diff.jl @@ -653,7 +653,7 @@ let end end @rule ~x::issym => 0] - linearity_propagator = Fixpoint(Postwalk(Chain(linearity_rules); similarterm=basic_simterm)) + linearity_propagator = Fixpoint(Postwalk(Chain(linearity_rules, true); similarterm=basic_simterm)) global hessian_sparsity