Skip to content

Commit 2839f2a

Browse files
author
Michael Abbott
committed
fixup rebase
1 parent c7b9cd3 commit 2839f2a

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

src/deprecations.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,3 @@ struct Zeros
1212
end
1313
end
1414
Zeros(args...) = Zeros()
15-
16-
# v0.11 deprecations
17-
@deprecate poisson poisson_loss false
18-
@deprecate hinge hinge_loss false
19-
@deprecate squared_hinge squared_hinge_loss false
20-
@deprecate normalise(x) normalise(x, dims=1) false
21-
22-
@deprecate binarycrossentropy(ŷ, y) Losses.binarycrossentropy(ŷ, y, agg=identity) false
23-
@deprecate logitbinarycrossentropy(ŷ, y) Losses.logitbinarycrossentropy(ŷ, y, agg=identity) false
24-
25-
function Broadcast.broadcasted(::typeof(binarycrossentropy), ŷ, y)
26-
@warn "binarycrossentropy.(ŷ, y) is deprecated, use Losses.binarycrossentropy(ŷ, y, agg=identity) instead"
27-
Losses.binarycrossentropy(ŷ, y, agg=identity)
28-
end
29-
30-
function Broadcast.broadcasted(::typeof(logitbinarycrossentropy), ŷ, y)
31-
@warn "logitbinarycrossentropy.(ŷ, y) is deprecated, use Losses.logitbinarycrossentropy(ŷ, y, agg=identity) instead"
32-
Losses.logitbinarycrossentropy(ŷ, y, agg=identity)
33-
end

src/layers/basic.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ The input `x` must be a vector of length `in`, or batch of vectors represented
9494
as an `in × N` matrix, or any array with `size(x,1) == in`.
9595
The out `y` will be a vector of length `out`, or a batch with `size(y) == (out, size(x)[2:end]...)`
9696
97-
Setting `bias` to `false` will switch the bias off for the layer.
98-
99-
10097
Setting `bias=false` creates a layer without bias parameters.
10198
102-
Keywords `initW=glorot_uniform` and `initb=Flux.zeros` control the initialisation of
103-
parameters, when using the first constructor.
99+
Two additional keywords `initW=glorot_uniform` and `initb=Flux.zeros` control the
100+
initialisation of parameters, when using the first constructor.
104101
105102
# Examples
106103
```jldoctest
@@ -139,7 +136,7 @@ end
139136

140137
@functor Dense
141138

142-
function (a::Dense)(x::AbstractVecOrMat)
139+
function (a::Dense)(x::AbstractArray)
143140
W, b, σ = a.W, a.b, a.σ
144141
# reshape to handle dims > 1 as batch dimensions
145142
sz = size(x)

0 commit comments

Comments
 (0)