Skip to content

Commit 0581dc4

Browse files
fix RegisterDataDep deprecation
1 parent e22572f commit 0581dc4

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/CIFAR10/CIFAR10.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module CIFAR10
5757
include("utils.jl")
5858

5959
function __init__()
60-
RegisterDataDep(
60+
register(DataDep(
6161
DEPNAME,
6262
"""
6363
Dataset: The CIFAR-10 dataset
@@ -88,6 +88,6 @@ module CIFAR10
8888
"https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz",
8989
"c4a38c50a1bc5f3a1c5537f2155ab9d68f9f25eb1ed8d9ddda3db29a59bca1dd",
9090
post_fetch_method = file -> (run(BinDeps.unpack_cmd(file,dirname(file), ".gz", ".tar")); rm(file))
91-
)
91+
))
9292
end
9393
end

src/CIFAR100/CIFAR100.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module CIFAR100
4444
include("interface.jl")
4545

4646
function __init__()
47-
RegisterDataDep(
47+
register(DataDep(
4848
DEPNAME,
4949
"""
5050
Dataset: The CIFAR-100 dataset
@@ -80,6 +80,6 @@ module CIFAR100
8080
"https://www.cs.toronto.edu/~kriz/cifar-100-binary.tar.gz",
8181
"58a81ae192c23a4be8b1804d68e518ed807d710a4eb253b1f2a199162a40d8ec",
8282
post_fetch_method = file -> (run(BinDeps.unpack_cmd(file,dirname(file), ".gz", ".tar")); rm(file))
83-
)
83+
))
8484
end
8585
end

src/FashionMNIST/FashionMNIST.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module FashionMNIST
5353
include("interface.jl")
5454

5555
function __init__()
56-
RegisterDataDep(
56+
register(DataDep(
5757
DEPNAME,
5858
"""
5959
Dataset: Fashion-MNIST
@@ -73,6 +73,6 @@ module FashionMNIST
7373
""",
7474
"http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/" .* [TRAINIMAGES, TRAINLABELS, TESTIMAGES, TESTLABELS],
7575
"c916b6e00d3083643332b70f3c5c3543d3941334b802e252976893969ee6af67",
76-
)
76+
))
7777
end
7878
end

src/MNIST/MNIST.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module MNIST
3939
include("utils.jl")
4040

4141
function __init__()
42-
RegisterDataDep(
42+
register(DataDep(
4343
DEPNAME,
4444
"""
4545
Dataset: THE MNIST DATABASE of handwritten digits
@@ -61,6 +61,6 @@ module MNIST
6161
""",
6262
"http://yann.lecun.com/exdb/mnist/" .* [TRAINIMAGES, TRAINLABELS, TESTIMAGES, TESTLABELS],
6363
"0bb1d5775d852fc5bb32c76ca15a7eb4e9a3b1514a2493f7edfcf49b639d7975",
64-
)
64+
))
6565
end
6666
end

src/PTBLM/PTBLM.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module PTBLM
4949
end
5050

5151
function __init__()
52-
RegisterDataDep(
52+
register(DataDep(
5353
DEPNAME,
5454
"""
5555
Dataset: Penn Treebank sentences for language modeling
@@ -76,6 +76,6 @@ module PTBLM
7676
""",
7777
"https://raw.githubusercontent.com/tomsercu/lstm/master/data/" .* [TRAINFILE, TESTFILE],
7878
"218f4e6c7288bb5efeb03cc4cb8ae9c04ecd8462ebfba8e13e3549fab69dc25f",
79-
)
79+
))
8080
end
8181
end

src/UD_English/UD_English.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module UD_English
3434
end
3535

3636
function __init__()
37-
RegisterDataDep(
37+
register(DataDep(
3838
DEPNAME,
3939
"""
4040
Dataset: Universal Dependencies - English Dependency Treebank Universal Dependencies English Web Treebank
@@ -72,6 +72,6 @@ module UD_English
7272
""",
7373
"https://raw.githubusercontent.com/UniversalDependencies/UD_English/master/" .* [TRAINFILE, DEVFILE, TESTFILE],
7474
"2311e260488453d5ba170cfd94e58ac4bd536263ea9545c7b25f0804e87b28a2",
75-
)
75+
))
7676
end
7777
end

0 commit comments

Comments
 (0)