Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: missing []
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jul 12, 2024
1 parent d24bae7 commit 70e4f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LuxTestUtils"
uuid = "ac9de150-d08f-4546-94fb-7472b5760531"
authors = ["Avik Pal <[email protected]>"]
version = "0.1.17"
version = "0.1.18"

[deps]
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
Expand Down
7 changes: 4 additions & 3 deletions src/LuxTestUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using ForwardDiff, ReverseDiff, Tracker, Zygote, FiniteDifferences
const JET_TARGET_MODULES = Ref{Union{Nothing, Vector{String}}}(nothing)

function __init__()
JET_TARGET_MODULES[] = @load_preference("target_modules", nothing)
return JET_TARGET_MODULES[] = @load_preference("target_modules", nothing)
end

function jet_target_modules!(list::Vector{String})
Expand Down Expand Up @@ -87,8 +87,9 @@ macro jet(expr, args...)
end
end

if !target_modules_set && JET_TARGET_MODULES !== nothing
target_modules = getproperty.((__module__,), Tuple(Symbol.(JET_TARGET_MODULES)))
if !target_modules_set && JET_TARGET_MODULES[] !== nothing
target_modules = getproperty.(
(__module__,), Tuple(Symbol.(JET_TARGET_MODULES[])))
push!(all_args, :(target_modules = $target_modules))
end

Expand Down

2 comments on commit 70e4f89

@avik-pal
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/110991

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.18 -m "<description of version>" 70e4f890f7b037262643e852322a57603a75ad61
git push origin v0.1.18

Please sign in to comment.