Skip to content

Commit 02f6594

Browse files
committed
fixup
1 parent e364bd0 commit 02f6594

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/layers/basic.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ end
301301
Bilinear((in1, in2) => out, σ=identity; bias=true, init=glorot_uniform)
302302
Bilinear(W::AbstractArray, [bias, σ])
303303
304-
Creates a bilinear layer, which operates on two inputs at the same time.
304+
Creates a fully connected layer which operates on two inputs.
305305
Its output, given vectors `x` & `y`, is another vector `z` with,
306306
for all `i ∈ 1:out`:
307307
@@ -394,11 +394,7 @@ function Base.show(io::IO, l::Bilinear)
394394
print(io, "Bilinear((", size(l.weight, 2), ", ", size(l.weight, 3), ") => ", size(l.weight, 1))
395395
end
396396
l.σ == identity || print(io, ", ", l.σ)
397-
<<<<<<< HEAD
398-
l.bias == Flux.Zeros() && print(io, "; bias=false")
399-
=======
400-
l.bias === false && print(io, ", bias=false")
401-
>>>>>>> 1ef2cd377 (rm Flux.Zeros, take N+1)
397+
l.bias === false && print(io, "; bias=false")
402398
print(io, ")")
403399
end
404400

test/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ end
264264
end
265265

266266
@testset "zero bias" begin
267-
m = Dense(3,2; bias=false)
267+
m = Dense(3 => 2; bias=false)
268268
@test f64(m).bias === m.bias === false
269269
@test f32(m).bias === m.bias === false
270270

@@ -376,8 +376,8 @@ end
376376
end
377377

378378
@testset "loadparams! & absent bias" begin
379-
m0 = Dense(2,3; bias=false, init = Flux.ones32)
380-
m1 = Dense(2,3; bias = Flux.randn32(3))
379+
m0 = Dense(2 => 3; bias=false, init = Flux.ones32)
380+
m1 = Dense(2 => 3; bias = Flux.randn32(3))
381381
m2 = Dense(Float32[1 2; 3 4; 5 6], Float32[7, 8, 9])
382382

383383
Flux.loadparams!(m1, Flux.params(m2))

0 commit comments

Comments
 (0)