Skip to content

Commit 75094d6

Browse files
fix test
1 parent 91cac26 commit 75094d6

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

src/layers/upsample.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Upsample(mode::Symbol = :nearest; scale = nothing, size = nothing)
3737
mode in [:nearest, :bilinear] ||
3838
throw(ArgumentError("mode=:$mode is not supported."))
3939
if !(isnothing(scale) isnothing(size))
40-
throw(ArgumentError("Either scale or size should be specified (but not both)."))
40+
throw(ArgumentError("Either scale or size should be specified (but not both)."))
4141
end
4242
return Upsample{mode,typeof(scale),typeof(size)}(scale, size)
4343
end

test/runtests.jl

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,49 @@ using IterTools: ncycle
66

77
Random.seed!(0)
88

9-
# @testset "Utils" begin
10-
# include("utils.jl")
11-
# end
12-
13-
# @testset "Onehot" begin
14-
# include("onehot.jl")
15-
# end
16-
17-
# @testset "Optimise" begin
18-
# include("optimise.jl")
19-
# end
20-
21-
# @testset "Data" begin
22-
# include("data.jl")
23-
# end
24-
25-
# @testset "Losses" begin
26-
# include("losses.jl")
27-
# include("ctc.jl")
28-
# if Flux.use_cuda[] include("ctc-gpu.jl") end
29-
# end
30-
31-
# @testset "Layers" begin
32-
# include("layers/basic.jl")
33-
# include("layers/normalisation.jl")
34-
# include("layers/stateless.jl")
35-
# include("layers/recurrent.jl")
36-
# include("layers/conv.jl")
9+
@testset "Utils" begin
10+
include("utils.jl")
11+
end
12+
13+
@testset "Onehot" begin
14+
include("onehot.jl")
15+
end
16+
17+
@testset "Optimise" begin
18+
include("optimise.jl")
19+
end
20+
21+
@testset "Data" begin
22+
include("data.jl")
23+
end
24+
25+
@testset "Losses" begin
26+
include("losses.jl")
27+
include("ctc.jl")
28+
if Flux.use_cuda[] include("ctc-gpu.jl") end
29+
end
30+
31+
@testset "Layers" begin
32+
include("layers/basic.jl")
33+
include("layers/normalisation.jl")
34+
include("layers/stateless.jl")
35+
include("layers/recurrent.jl")
36+
include("layers/conv.jl")
3737
include("layers/upsample.jl")
38-
# end
39-
40-
# @testset "outputsize" begin
41-
# using Flux: outputsize
42-
# include("outputsize.jl")
43-
# end
44-
45-
# @testset "CUDA" begin
46-
# if Flux.use_cuda[]
47-
# include("cuda/runtests.jl")
48-
# else
49-
# @warn "CUDA unavailable, not testing GPU support"
50-
# end
51-
# end
38+
end
39+
40+
@testset "outputsize" begin
41+
using Flux: outputsize
42+
include("outputsize.jl")
43+
end
44+
45+
@testset "CUDA" begin
46+
if Flux.use_cuda[]
47+
include("cuda/runtests.jl")
48+
else
49+
@warn "CUDA unavailable, not testing GPU support"
50+
end
51+
end
5252

5353
@static if VERSION == v"1.5"
5454
using Documenter

0 commit comments

Comments
 (0)