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

feat: add ConstructionBaseExt to allow Setfield and Functors support #94

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

avik-pal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Functors v0.5 started defaulting to recurse into all types, which means we need to be able to reconstruct types based on ConstructionBase. See https://github.com/LuxDL/Lux.jl/actions/runs/11825400363/job/32949087528?pr=1069#step:6:50

@gdalle
Copy link
Collaborator

gdalle commented Nov 13, 2024

Please don't merge before I have a chance to review

@ChrisRackauckas
Copy link
Member

Please review now then? It's very uncontroversial.

ext/ADTypesConstructionBaseExt.jl Show resolved Hide resolved
test/misc.jl Show resolved Hide resolved
@gdalle
Copy link
Collaborator

gdalle commented Nov 13, 2024

Please review now then? It's very uncontroversial.

It is currently 23:18 where I live. I don't think this change is so urgent that it cannot wait 24h.

This was referenced Nov 13, 2024
src/dense.jl Outdated Show resolved Hide resolved
src/dense.jl Outdated Show resolved Hide resolved
Co-authored-by: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
@gdalle
Copy link
Collaborator

gdalle commented Nov 14, 2024

You can go ahead and merge, I trust Chris' review

@avik-pal avik-pal merged commit c69589a into main Nov 14, 2024
5 checks passed
@avik-pal avik-pal deleted the ap/constructionbase branch November 14, 2024 16:01
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.

3 participants