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

Commit

Permalink
escape sequence fails for 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jun 6, 2023
1 parent 3e81b13 commit 35c8430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LuxLib"
uuid = "82251201-b29d-42c6-8e01-566dec8acb11"
authors = ["Avik Pal <[email protected]> and contributors"]
version = "0.2.2"
version = "0.2.3"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
6 changes: 2 additions & 4 deletions ext/LuxLibTrackerExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ end
epsilon::Real) where {T <: FP_32_64}
LuxLib._assert_same_backend(data(x), data(scale), data(bias))
if length(scale) != length(bias) != size(x, 3)
throw(ArgumentError("Length of `scale` and `bias` must be equal to the number of \
channels (N - 1 dim of the input array)."))
throw(ArgumentError("Length of `scale` and `bias` must be equal to the number of channels (N - 1 dim of the input array)."))
end
if size(x, 3) % groups != 0
throw(ArgumentError("Number of channels $(size(x, 3)) must be divisible by the \
number of groups $groups."))
throw(ArgumentError("Number of channels $(size(x, 3)) must be divisible by the number of groups $groups."))
end

y, mu, rsig = LuxLib._groupnorm(data(x), groups, data(scale), data(bias), epsilon)
Expand Down

2 comments on commit 35c8430

@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/85010

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.2.3 -m "<description of version>" 35c843013e50a9c84e5944fa9f4960cae856a092
git push origin v0.2.3

Please sign in to comment.