Skip to content

Commit f5882c7

Browse files
authored
Merge pull request FluxML#2047 from MarcoVela/patch-1
Typo in BatchNorm number of channels assertion
2 parents d4f1d81 + 3dbb05e commit f5882c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cuda/cudnn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function (BN::Flux.BatchNorm)(x::Union{CuArray{T,2},CuArray{T,4},CuArray{T,5}},
55

66
@assert BN.affine "BatchNorm: only affine=true supported on gpu"
77
@assert BN.track_stats "BatchNorm: only track_stats=true supported on gpu"
8-
@assert length(BN.β) == size(x, ndims(x)-1) "BatchNorm: input has wronng number of channels"
8+
@assert length(BN.β) == size(x, ndims(x)-1) "BatchNorm: input has wrong number of channels"
99
return BN.λ.(batchnorm(BN.γ, BN.β, x, BN.μ, BN.σ², BN.momentum;
1010
cache=cache, alpha=1, beta=0, eps=BN.ϵ,
1111
training=Flux._isactive(BN)))

0 commit comments

Comments
 (0)