Skip to content

Commit bc0d0dd

Browse files
committed
Format code
1 parent 3aa10ba commit bc0d0dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lrp/canonize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function fuse_batchnorm(d::Dense, bn::BatchNorm)
66
b = if d.bias != false
77
scale .* (d.bias - bn.μ) + bn.β
88
else
9-
- scale .* bn.μ + bn.β
9+
-scale .* bn.μ + bn.β
1010
end
1111
return Dense(W, b, bn.λ)
1212
end
@@ -18,7 +18,7 @@ function fuse_batchnorm(c::Conv, bn::BatchNorm)
1818
b = if c.bias != false
1919
scale .* (c.bias - bn.μ) + bn.β
2020
else
21-
- scale .* bn.μ + bn.β
21+
-scale .* bn.μ + bn.β
2222
end
2323
return Conv(bn.λ, W, b, c.stride, c.pad, c.dilation, c.groups)
2424
end

test/test_canonize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ model = Chain(
5757
BatchNorm(2, softplus),
5858
BatchNorm(2),
5959
flatten,
60-
Dense(72, 10, bias=false),
60+
Dense(72, 10; bias=false),
6161
BatchNorm(10),
6262
BatchNorm(10),
6363
BatchNorm(10, relu),
@@ -113,7 +113,7 @@ model = Chain(
113113
+,
114114
Conv((3, 3), 4 => 5, identity),
115115
Chain(
116-
Conv((3, 3), 4 => 5, bias=false, identity), # fuse
116+
Conv((3, 3), 4 => 5; bias=false, identity), # fuse
117117
BatchNorm(5),
118118
),
119119
Chain(

0 commit comments

Comments
 (0)