Skip to content

Commit 5fbf12f

Browse files
committed
Refactor
1 parent a39d91b commit 5fbf12f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ macro conditional_testset(name, skip_tests, expr)
2626
end)
2727
end
2828

29+
cpu(x) = adapt(CPU(), x)
30+
2931
include("upsample.jl")
3032

3133
function nnlib_testsuite(Backend; skip_tests = Set{String}())

test/upsample.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
function upsample_testsuite(Backend)
2-
cpu(x) = adapt(CPU(), x)
32
device(x) = adapt(Backend(), x)
43
gradtest_fn = KernelAbstractions.isgpu(Backend()) ? gputest : gradtest
54
T = Float32 # TODO test against all supported eltypes for each backend.

0 commit comments

Comments
 (0)