Skip to content

Commit

Permalink
Update DuplicatedNoNeed error message (#1933)
Browse files Browse the repository at this point in the history
* Update DuplicatedNoNeed error message

* Update src/Enzyme.jl
  • Loading branch information
Vaibhavdixit02 authored Oct 2, 2024
1 parent 1bc2ce1 commit 3c0871d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c0871d

Please sign in to comment.