Skip to content

Commit d151080

Browse files
author
Anton Smirnov
committed
Remove more stuff
1 parent ea50787 commit d151080

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/layers/normalise.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,6 @@ function Base.show(io::IO, l::LayerNorm)
188188
print(io, ")")
189189
end
190190

191-
_maybe_promote_type(::Type{T1}, ::Type{T2}) where {T1, T2} = promote_type(T1, T2)
192-
_maybe_promote_type(::Type{Nothing}, ::Type{T2}) where T2 = T2
193-
_maybe_promote_type(::Type{T1}, ::Type{Nothing}) where T1 = T1
194-
195-
_maybe_eltype(::Type{T}) where T <: AbstractArray = eltype(T)
196-
_maybe_eltype(::Type{Nothing}) = Nothing
197-
198191
# For InstanceNorm, GroupNorm, and BatchNorm.
199192
# Compute the statistics on the slices specified by reduce_dims.
200193
# reduce_dims=[1,...,N-2,N] for BatchNorm

0 commit comments

Comments
 (0)