Skip to content

Commit 94ff497

Browse files
authored
fix: relax input types (#1226)
* fix: relax input types * Update lib/LuxLib/src/api/instancenorm.jl
1 parent 8a1cb65 commit 94ff497

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/LuxLib/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LuxLib"
22
uuid = "82251201-b29d-42c6-8e01-566dec8acb11"
33
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
4-
version = "1.6.0"
4+
version = "1.6.1"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

lib/LuxLib/src/api/groupnorm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The normalized array is returned.
2828
[1] Wu, Yuxin, and Kaiming He. "Group normalization." Proceedings of the European conference
2929
on computer vision (ECCV). 2018.
3030
"""
31-
function groupnorm(x::AbstractArray{<:Real, N}, scale::Optional{<:AbstractVector},
31+
function groupnorm(x::AbstractArray{<:Number, N}, scale::Optional{<:AbstractVector},
3232
bias::Optional{<:AbstractVector}, groups::Int, σ::F=identity,
3333
epsilon=default_epsilon(x)) where {F, N}
3434
assert_valid_groupnorm_arguments(x, scale, bias, groups)

lib/LuxLib/src/api/instancenorm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
function instancenorm(x::AbstractArray, γ::Optional{<:AbstractVector},
4545
β::Optional{<:AbstractVector}, rμ::Optional{<:AbstractVector},
4646
rσ²::Optional{<:AbstractVector}, training::TrainingType, σ::F=identity,
47-
momentum::Optional{<:Real}=0.1f0, epsilon=default_epsilon(x)) where {F}
47+
momentum::Optional{<:Number}=0.1f0, epsilon=default_epsilon(x)) where {F}
4848
assert_valid_instancenorm_arguments(x)
4949

5050
y, rμₙ, rσ²ₙ = instancenorm_impl(

0 commit comments

Comments
 (0)