Skip to content

Commit f4682e8

Browse files
committed
add the MNIST dataset URL as a global attribute
1 parent 81b4dfa commit f4682e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/MNIST/create_mnist_netcdf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def to_nc(train_samples, train_labels, test_samples, test_labels, out_file_path=
5757

5858
with pnetcdf.File(out_file_path, mode = "w", format = "NC_64BIT_DATA") as fnc:
5959

60+
# add MNIST dataset URL as a global attribute
61+
fnc.url = "https://yann.lecun.com/exdb/mnist/"
62+
6063
# Each image is of dimension 28 x 28
6164
dim_y = fnc.def_dim("height", 28)
6265
dim_x = fnc.def_dim("width", 28)

0 commit comments

Comments
 (0)