Skip to content

Commit

Permalink
Remove more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Smirnov committed Feb 3, 2022
1 parent ea50787 commit d151080
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/layers/normalise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,6 @@ function Base.show(io::IO, l::LayerNorm)
print(io, ")")
end

_maybe_promote_type(::Type{T1}, ::Type{T2}) where {T1, T2} = promote_type(T1, T2)
_maybe_promote_type(::Type{Nothing}, ::Type{T2}) where T2 = T2
_maybe_promote_type(::Type{T1}, ::Type{Nothing}) where T1 = T1

_maybe_eltype(::Type{T}) where T <: AbstractArray = eltype(T)
_maybe_eltype(::Type{Nothing}) = Nothing

# For InstanceNorm, GroupNorm, and BatchNorm.
# Compute the statistics on the slices specified by reduce_dims.
# reduce_dims=[1,...,N-2,N] for BatchNorm
Expand Down

0 comments on commit d151080

Please sign in to comment.