From c9531a14cd16d145ca84989737d09ea59e1eb361 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 5 Jul 2024 14:36:26 -0400 Subject: [PATCH] revert failing make_zeros due to https://github.com/EnzymeAD/Enzyme.jl/issues/1611 --- src/derivative_wrappers.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/derivative_wrappers.jl b/src/derivative_wrappers.jl index 07c449318..51953572c 100644 --- a/src/derivative_wrappers.jl +++ b/src/derivative_wrappers.jl @@ -680,7 +680,8 @@ function _vecjacobian!(dλ, y, λ, p, t, S::TS, isautojacvec::EnzymeVJP, dgrad, ytmp = _tmp5 end - Enzyme.make_zero!(tmp1) # should be removed for dλ + tmp1 .= 0 + #Enzyme.make_zero!(tmp1) # should be removed for dλ ytmp .= y #if dgrad !== nothing @@ -698,7 +699,8 @@ function _vecjacobian!(dλ, y, λ, p, t, S::TS, isautojacvec::EnzymeVJP, dgrad, #if dy !== nothing # tmp3 = dy #else - Enzyme.make_zero!(tmp3) + tmp3 .= 0 + #Enzyme.make_zero!(tmp3) #end vec(tmp4) .= vec(λ)