From 3c0871d54b85e72a8b0dc2e2e5d48d2eb6e0a95e Mon Sep 17 00:00:00 2001 From: Vaibhav Kumar Dixit Date: Wed, 2 Oct 2024 13:40:25 -0400 Subject: [PATCH] Update DuplicatedNoNeed error message (#1933) * Update DuplicatedNoNeed error message * Update src/Enzyme.jl --- src/Enzyme.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Enzyme.jl b/src/Enzyme.jl index 17a7c6ff5d..2e7789d660 100644 --- a/src/Enzyme.jl +++ b/src/Enzyme.jl @@ -600,7 +600,7 @@ f(x) = x*x if A <: DuplicatedNoNeed || A <: BatchDuplicatedNoNeed throw( ErrorException( - "Return activity `DuplicatedNoNeed` is no longer now returning or avoiding the primal is passed in for Forward Mode AD.\nPlease use autodiff(Forward, ...) or autodiff(ForwardWithPrimal, ...)", + "`DuplicatedNoNeed` passed in as return activity for Forward Mode AD is no longer returning or avoiding the primal.\nPlease use autodiff(Forward, ...) or autodiff(ForwardWithPrimal, ...)", ), ) end