cuparam -> cuarray

This commit is contained in:
Mike Innes 2019-07-11 14:14:34 +01:00
parent 11c9a8450c
commit 33c8d84a60

View File

@ -193,7 +193,7 @@ end
# Flux Interface
(BN::Flux.BatchNorm)(x::Union{CuParam{T,2},CuParam{T,4},CuParam{T,5}}, cache = nothing) where T<:Union{Float32, Float64} =
(BN::Flux.BatchNorm)(x::Union{CuArray{T,2},CuArray{T,4},CuArray{T,5}}, cache = nothing) where T<:Union{Float32, Float64} =
BN.λ.(batchnorm(BN.γ, BN.β, x, BN.μ, BN.σ², BN.momentum; cache = cache, alpha = 1, beta = 0, eps = BN.ϵ, training = BN.active))
@adjoint batchnorm(g, b, x, running_mean, running_var, momentum; kw...) =