You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ib...@apache.org on 2019/01/21 12:02:07 UTC

[incubator-mxnet] branch ib/ci-jl-win updated: fix download of mnist data

This is an automated email from the ASF dual-hosted git repository.

iblis pushed a commit to branch ib/ci-jl-win
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/ib/ci-jl-win by this push:
     new 0116940  fix download of mnist data
0116940 is described below

commit 011694014dd0b96fd4644e4342919f09996921b9
Author: Iblis Lin <ib...@hs.ntnu.edu.tw>
AuthorDate: Mon Jan 21 20:01:48 2019 +0800

    fix download of mnist data
---
 ci/windows/test_jl07_cpu.ps1 | 3 ---
 julia/src/util.jl            | 6 +++---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ci/windows/test_jl07_cpu.ps1 b/ci/windows/test_jl07_cpu.ps1
index 47b0bea..85ff223 100644
--- a/ci/windows/test_jl07_cpu.ps1
+++ b/ci/windows/test_jl07_cpu.ps1
@@ -42,9 +42,6 @@ if (! $?) { Throw ("Error on installing Julia") }
 # use PackageSpec(name = "MXNet", path = "...") if we drop the 0.7 support
 Copy-Item -Path .\julia -Recurse -Destination "$env:JULIA_DEPOT_PATH\dev\MXNet"
 
-# debug
-dir $env:MXNET_HOME
-
 $src='
     using Pkg
     Pkg.develop("MXNet")
diff --git a/julia/src/util.jl b/julia/src/util.jl
index ae2e50b..ac7f4fc 100644
--- a/julia/src/util.jl
+++ b/julia/src/util.jl
@@ -35,12 +35,12 @@ function get_mnist_ubyte()
   filenames = Dict((x[1] => joinpath(mnist_dir, x[2]) for x ∈ pairs(filenames)))
   if !all(isfile, values(filenames))
     cd(mnist_dir) do
-      mnist_dir = download("http://data.mxnet.io/mxnet/data/mnist.zip", "mnist.zip")
+      data = download("http://data.mxnet.io/mxnet/data/mnist.zip", "mnist.zip")
         try
-          run(`unzip -u $mnist_dir`)
+          run(`unzip -u $data`)
         catch
           try
-            run(pipe(`7z x $mnist_dir`,stdout = devnull))
+            run(pipeline(`7z x $data`,stdout = devnull))
           catch
             error("Extraction Failed:No extraction program found in path")
           end