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

Fix the readme's example #111

Merged
merged 2 commits into from
Jul 30, 2021
Merged

Fix the readme's example #111

merged 2 commits into from
Jul 30, 2021

Conversation

mcabbott
Copy link
Contributor

As written it tries to compare a tuple to a number:

julia> @test autodiff(f1, Active(1.0)) ≈ 2.0
Error During Test at REPL[236]:1
  Test threw exception
  Expression: autodiff(f1, Active(1.0)) ≈ 2.0
  MethodError: no method matching isapprox(::Tuple{Float64}, ::Float64)

@wsmoses wsmoses merged commit 801126e into EnzymeAD:master Jul 30, 2021
@wsmoses
Copy link
Member

wsmoses commented Jul 30, 2021

Thanks! Yeah we changed the API for that a while back and clearly didn't update the readme.

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.

None yet

2 participants