Skip to content

Commit 8f81f36

Browse files
authored
Merge pull request #17 from CarloLucibello/warn
fix RegisterDataDep deprecation
2 parents d98ed58 + 0a70c84 commit 8f81f36

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ julia 0.6
22
ImageCore 0.1.2
33
FixedPointNumbers 0.3
44
ColorTypes 0.4
5-
DataDeps
5+
DataDeps 0.3
66
GZip
77
BinDeps
88
MAT

src/CIFAR10/CIFAR10.jl

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

7272
function __init__()
73-
RegisterDataDep(
73+
register(DataDep(
7474
DEPNAME,
7575
"""
7676
Dataset: The CIFAR-10 dataset
@@ -101,6 +101,6 @@ module CIFAR10
101101
"https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz",
102102
"c4a38c50a1bc5f3a1c5537f2155ab9d68f9f25eb1ed8d9ddda3db29a59bca1dd",
103103
post_fetch_method = file -> (run(BinDeps.unpack_cmd(file,dirname(file), ".gz", ".tar")); rm(file))
104-
)
104+
))
105105
end
106106
end

src/CIFAR100/CIFAR100.jl

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

5959
function __init__()
60-
RegisterDataDep(
60+
register(DataDep(
6161
DEPNAME,
6262
"""
6363
Dataset: The CIFAR-100 dataset
@@ -93,6 +93,6 @@ module CIFAR100
9393
"https://www.cs.toronto.edu/~kriz/cifar-100-binary.tar.gz",
9494
"58a81ae192c23a4be8b1804d68e518ed807d710a4eb253b1f2a199162a40d8ec",
9595
post_fetch_method = file -> (run(BinDeps.unpack_cmd(file,dirname(file), ".gz", ".tar")); rm(file))
96-
)
96+
))
9797
end
9898
end

src/FashionMNIST/FashionMNIST.jl

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

9191
function __init__()
92-
RegisterDataDep(
92+
register(DataDep(
9393
DEPNAME,
9494
"""
9595
Dataset: Fashion-MNIST
@@ -109,6 +109,6 @@ module FashionMNIST
109109
""",
110110
"http://fashion-mnist.s3-website.eu-central-1.amazonaws.com/" .* [TRAINIMAGES, TRAINLABELS, TESTIMAGES, TESTLABELS],
111111
"c916b6e00d3083643332b70f3c5c3543d3941334b802e252976893969ee6af67",
112-
)
112+
))
113113
end
114114
end

src/MNIST/MNIST.jl

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

7777
function __init__()
78-
RegisterDataDep(
78+
register(DataDep(
7979
DEPNAME,
8080
"""
8181
Dataset: THE MNIST DATABASE of handwritten digits
@@ -97,6 +97,6 @@ module MNIST
9797
""",
9898
"http://yann.lecun.com/exdb/mnist/" .* [TRAINIMAGES, TRAINLABELS, TESTIMAGES, TESTLABELS],
9999
"0bb1d5775d852fc5bb32c76ca15a7eb4e9a3b1514a2493f7edfcf49b639d7975",
100-
)
100+
))
101101
end
102102
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)