Skip to content

Commit f2878c4

Browse files
committed
Use ≈ instead
1 parent 4f46779 commit f2878c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/layers/conv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ end
118118
w = rand(Float32, 2,2,1,1)
119119
y = CrossCor(w, [0.0])
120120

121-
@test isapprox(sum(w .* x[1:2, 1:2, :, :]), y(x)[1, 1, 1, 1], rtol=1e-7)
121+
@test sum(w .* x[1:2, 1:2, :, :]) y(x)[1, 1, 1, 1] rtol=1e-7
122122

123123
r = zeros(Float32, 28, 28, 1, 5)
124124
m = Chain(
@@ -131,7 +131,7 @@ end
131131

132132
@test size(m(r)) == (10, 5)
133133
@test y(x) != Conv(w, [0.0])(x)
134-
@test isapprox(CrossCor(w[end:-1:1, end:-1:1, :, :], [0.0])(x), Conv(w, [0.0])(x), rtol=1e-7)
134+
@test CrossCor(w[end:-1:1, end:-1:1, :, :], [0.0])(x) Conv(w, [0.0])(x) rtol=1e-7
135135
end
136136

137137
@testset "Conv with non quadratic window #700" begin

0 commit comments

Comments
 (0)