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

Patches for Lux integration #7

Merged
merged 6 commits into from
May 30, 2024
Merged

Patches for Lux integration #7

merged 6 commits into from
May 30, 2024

Conversation

avik-pal
Copy link
Collaborator

I am pulling out the patches from #5, so that we can get them in faster

Copy link
Member

@wsmoses wsmoses left a comment

Choose a reason for hiding this comment

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

Could array interface be done in an extension package if it's not in base

@avik-pal
Copy link
Collaborator Author

Could array interface be done in an extension package if it's not in base

Done

src/Reactant.jl Outdated Show resolved Hide resolved
@@ -7,7 +7,7 @@ function transpose_val(val)
return MLIR.IR.result(MLIR.Dialects.stablehlo.transpose(val, permutation=attr), 1)
end

function apply(f, args...; kwargs)
function apply(f, args...; kwargs...)
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test for what needed this. I somehow recall the other way being intentional but maybe not

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This came up in computing the gradient of the model with Enzyme. But that code is not completely functional yet, see LuxDL/Lux.jl#665 (comment)

@wsmoses
Copy link
Member

wsmoses commented May 27, 2024 via email

@wsmoses
Copy link
Member

wsmoses commented May 27, 2024 via email

Project.toml Outdated Show resolved Hide resolved
src/overloads.jl Outdated Show resolved Hide resolved
.vscode/settings.json Outdated Show resolved Hide resolved
@wsmoses wsmoses merged commit 4b2e2b6 into EnzymeAD:main May 30, 2024
19 of 20 checks passed
@avik-pal avik-pal deleted the ap/patch branch May 31, 2024 04:15
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