diff --git a/docs/install/index.md b/docs/install/index.md
index d2bd24eb128e..82cc5738228c 100644
--- a/docs/install/index.md
+++ b/docs/install/index.md
@@ -108,7 +108,22 @@ Indicate your preferred configuration. Then, follow the customized commands to i
+
+
+
+
diff --git a/julia/REQUIRE b/julia/REQUIRE
deleted file mode 100644
index 8008da3d2aaa..000000000000
--- a/julia/REQUIRE
+++ /dev/null
@@ -1,6 +0,0 @@
-julia 0.7
-Formatting
-BinDeps
-JSON
-MacroTools
-Reexport
diff --git a/julia/deps/build.jl b/julia/deps/build.jl
index badca65be577..a87343d9dab5 100644
--- a/julia/deps/build.jl
+++ b/julia/deps/build.jl
@@ -24,7 +24,7 @@ using LinearAlgebra
################################################################################
libmxnet_detected = false
libmxnet_curr_ver = get(ENV, "MXNET_COMMIT", "master")
-curr_win = "20180211" # v1.1.0
+curr_win = "20190608" # v1.5.0
if haskey(ENV, "MXNET_HOME")
MXNET_HOME = ENV["MXNET_HOME"]
@@ -119,21 +119,25 @@ if !libmxnet_detected
base_url = "https://github.com/yajiedesign/mxnet/releases/download/weekly_binary_build_v2/prebuildbase_win10_x64_vc14_v2.7z"
if libmxnet_curr_ver == "master"
+ _cmd = "{
+ [System.Net.ServicePointManager]::SecurityProtocol='tls12';
+ Invoke-WebRequest -Uri 'https://api.github.com/repos/yajiedesign/mxnet/releases/latest'
+ -OutFile 'mxnet.json'}"
# download_cmd uses powershell 2, but we need powershell 3 to do this
- run(`powershell -NoProfile -Command Invoke-WebRequest -Uri "https://api.github.com/repos/yajiedesign/mxnet/releases/latest" -OutFile "mxnet.json"`)
+ run(`powershell -NoProfile -Command $_cmd`)
curr_win = JSON.parsefile("mxnet.json")["tag_name"]
@info("Can't use MXNet master on Windows, using latest binaries from $curr_win.")
end
# TODO: Get url from JSON.
- name = "mxnet_x64_vc14_$(HAS_CUDA ? "gpu" : "cpu").7z"
+ # TODO: detect cuda version and select corresponding url.
+ name = "mxnet_x64_$(HAS_CUDA ? "vc141_gpu_cu101" : "vc14_cpu").7z"
package_url = "https://github.com/yajiedesign/mxnet/releases/download/$(curr_win)/$(curr_win)_$(name)"
- exe7z = joinpath(JULIA_HOME, "7z.exe")
+ exe7z = joinpath(Sys.BINDIR, "7z.exe")
run(download_cmd(package_url, "mxnet.7z"))
# this command will create the dir "usr\\lib"
- run(`$exe7z x mxnet.7z build lib -y -ousr`)
- run(`cmd /c copy "usr\\build\\*.dll" "usr\\lib"`)
+ run(`$exe7z e mxnet.7z *\\build\\* *\\lib\\* -y -ousr\\lib`)
run(download_cmd(base_url, "mxnet_base.7z"))
run(`$exe7z x mxnet_base.7z -y -ousr`)
diff --git a/julia/docs/src/api/ndarray.md b/julia/docs/src/api/ndarray.md
index 8cc4948e4dde..64f59dc5393e 100644
--- a/julia/docs/src/api/ndarray.md
+++ b/julia/docs/src/api/ndarray.md
@@ -70,5 +70,21 @@ In the following example `y` can be a `Real` value or another `NDArray`
```@autodocs
Modules = [MXNet.mx]
-Pages = ["ndarray.jl"]
+Pages = [
+ "ndarray.jl",
+ "ndarray/activation.jl",
+ "ndarray/arithmetic.jl",
+ "ndarray/array.jl",
+ "ndarray/autoimport.jl",
+ "ndarray/comparison.jl",
+ "ndarray/context.jl",
+ "ndarray/io.jl",
+ "ndarray/linalg.jl",
+ "ndarray/reduction.jl",
+ "ndarray/remap.jl",
+ "ndarray/show.jl",
+ "ndarray/statistic.jl",
+ "ndarray/trig.jl",
+ "ndarray/type.jl",
+]
```
diff --git a/julia/docs/src/api/symbolic-node.md b/julia/docs/src/api/symbolic-node.md
index b4b1c0167e5e..0efe4605c414 100644
--- a/julia/docs/src/api/symbolic-node.md
+++ b/julia/docs/src/api/symbolic-node.md
@@ -19,5 +19,14 @@
```@autodocs
Modules = [MXNet.mx]
-Pages = ["symbolic-node.jl"]
+Pages = [
+ "symbolic-node.jl",
+ "symbolic-node/arithmetic.jl",
+ "symbolic-node/array.jl",
+ "symbolic-node/autodiff.jl",
+ "symbolic-node/io.jl",
+ "symbolic-node/op.jl",
+ "symbolic-node/show.jl",
+ "symbolic-node/type.jl",
+]
```
diff --git a/julia/src/executor.jl b/julia/src/executor.jl
index e565617976ce..37f2dde615b8 100644
--- a/julia/src/executor.jl
+++ b/julia/src/executor.jl
@@ -176,7 +176,7 @@ end
function forward(self::Executor; is_train::Bool = false, kwargs...)
for (k,v) in kwargs
- @assert(k ∈ self.arg_dict, "Unknown argument $k")
+ @assert(k ∈ keys(self.arg_dict), "Unknown argument $k")
@assert(isa(v, NDArray), "Keyword argument $k must be an NDArray")
copy!(self.arg_dict[k], v)
end
diff --git a/julia/test/unittest/bind.jl b/julia/test/unittest/bind.jl
index 0ae0ab427b99..a221733cded1 100644
--- a/julia/test/unittest/bind.jl
+++ b/julia/test/unittest/bind.jl
@@ -84,11 +84,26 @@ function test_arithmetic()
end
end
+function test_forward()
+ # forward with data keyword argument
+ x = @var x
+ y = x .+ 42
+
+ A = 1:5
+ B = A .+ 42
+
+ e = bind(y, args = Dict(:x => NDArray(24:28)))
+ z = forward(e, x = NDArray(A))[1]
+
+ @test copy(z) == collect(B)
+end
+
################################################################################
# Run tests
################################################################################
@testset "Bind Test" begin
test_arithmetic()
+ test_forward()
end
end