Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DuplicatedNoNeed error message #1933

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

Vaibhavdixit02
Copy link
Contributor

I found the error quite confusing, I hope this is correct/better

src/Enzyme.jl Outdated
@@ -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, ...)",
"Return activity `DuplicatedNoNeed` passed in for Forward Mode AD is no longer now returning or avoiding the primal.\nPlease use autodiff(Forward, ...) or autodiff(ForwardWithPrimal, ...)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps, passed in as return activity for Forward Mode AD

src/Enzyme.jl Outdated Show resolved Hide resolved
@wsmoses wsmoses merged commit 3c0871d into EnzymeAD:main Oct 2, 2024
11 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants