Skip to content

Commit 5e589b5

Browse files
Update src/layers/conv.jl
Co-authored-by: Carlo Lucibello <[email protected]>
1 parent 9e23615 commit 5e589b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layers/conv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ function GMMConv(ch::Pair{NTuple{2,Int},Int},
11341134
(nin, ein), out = ch
11351135
mu = init(ein, K)
11361136
sigma_inv = init(ein, K)
1137-
b = bias ? Flux.create_bias(ones(out), true) : false
1137+
b = bias ? Flux.create_bias(mu, true, out) : false
11381138
dense_x = Dense(nin, out*K, bias=false)
11391139
GMMConv(mu, sigma_inv, b, σ, ch, K, dense_x, residual)
11401140
end

0 commit comments

Comments
 (0)