From 661f09eeb9410f44b76f8e351c671d1872703018 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Fri, 19 May 2023 09:04:12 +0200 Subject: [PATCH] cleanup --- test.jl | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 test.jl diff --git a/test.jl b/test.jl deleted file mode 100644 index 4d96dc1..0000000 --- a/test.jl +++ /dev/null @@ -1,11 +0,0 @@ -using MLUtils -struct DummyData{X} - x::X -end -MLUtils.numobs(data::DummyData) = numobs(data.x) -MLUtils.getobs(data::DummyData, idx) = getobs(data.x, idx) -MLUtils.getobs!(buffer, data::DummyData, idx) = getobs!(buffer, data.x, idx) - -data = DummyData(rand(3,100)) -d1 = collect(DataLoader(data; batchsize=1, buffer=true)) # no error -d2 = collect(DataLoader(data; batchsize=-1, buffer=true)) # error