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

Change function in thunk to be type rather than instance #678

Merged
merged 22 commits into from
Mar 19, 2023
Merged

Change function in thunk to be type rather than instance #678

merged 22 commits into from
Mar 19, 2023

Conversation

wsmoses
Copy link
Member

@wsmoses wsmoses commented Mar 18, 2023

No description provided.

@wsmoses wsmoses requested a review from vchuravy March 18, 2023 20:02
src/compiler.jl Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2023

Codecov Report

Patch coverage: 69.20% and project coverage change: -1.18 ⚠️

Comparison is base (2ccf4b7) 73.42% compared to head (3d3d574) 72.25%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #678      +/-   ##
==========================================
- Coverage   73.42%   72.25%   -1.18%     
==========================================
  Files          18       18              
  Lines        6906     6948      +42     
==========================================
- Hits         5071     5020      -51     
- Misses       1835     1928      +93     
Impacted Files Coverage Δ
src/typetree.jl 88.18% <ø> (+0.68%) ⬆️
src/compiler/pmap.jl 76.53% <50.00%> (-1.31%) ⬇️
src/compiler.jl 72.77% <63.11%> (-1.47%) ⬇️
src/compiler/validation.jl 61.79% <66.66%> (-0.38%) ⬇️
src/Enzyme.jl 86.02% <95.16%> (+2.32%) ⬆️
src/compiler/orcv1.jl 80.00% <100.00%> (+7.50%) ⬆️
src/compiler/reflection.jl 91.17% <100.00%> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.


Like [`autodiff_deferred`](@ref) but will try to extend f to an annotation, if needed.
"""
@inline function autodiff_deferred(mode::CMode, f::F, args...) where {F, CMode<:Mode}
Copy link
Member

Choose a reason for hiding this comment

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

CMode?

src/Enzyme.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
forward = thunk(fn, dfn, Const, Tuple{}, Val(API.DEM_ForwardMode), width, Val((false,)))

forward = thunk(Duplicated{Core.Typeof(fn)}, Const, Tuple{}, Val(API.DEM_ForwardMode), width, Val((false,)))
ft = Duplicated(fn, dfn)
Copy link
Member

Choose a reason for hiding this comment

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

This ain't a function type.

src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
src/compiler.jl Outdated Show resolved Hide resolved
Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
@wsmoses wsmoses merged commit a80b8fc into main Mar 19, 2023
@wsmoses wsmoses deleted the fnty branch March 19, 2023 22:29
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

3 participants