You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/06/15 13:36:25 UTC

[GitHub] lebeg closed pull request #11201: Removed makefile build for armv7

lebeg closed pull request #11201: Removed makefile build for armv7
URL: https://github.com/apache/incubator-mxnet/pull/11201
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.gitignore b/.gitignore
index d585672ab7d..416741a5e70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -166,3 +166,7 @@ python/.eggs
 *DartConfiguration.tcl
 tests/Makefile
 tests/mxnet_unit_tests
+
+# generated wrappers for ccache
+cc
+cxx
diff --git a/3rdparty/ps-lite b/3rdparty/ps-lite
index a6dda54604a..8a763892a97 160000
--- a/3rdparty/ps-lite
+++ b/3rdparty/ps-lite
@@ -1 +1 @@
-Subproject commit a6dda54604a07d1fb21b016ed1e3f4246b08222a
+Subproject commit 8a763892a973afc1acd3d4b469d05bb338a83a6e
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e57c00b69e9..8a1765a0e67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -321,14 +321,15 @@ endif()
 
 # ---[ OpenCV
 if(USE_OPENCV)
-  find_package(OpenCV QUIET COMPONENTS core highgui imgproc imgcodecs)
+  find_package(OpenCV COMPONENTS core highgui imgproc imgcodecs)
   if(NOT OpenCV_FOUND) # if not OpenCV 3.x, then imgcodecs are not found
+    message(STATUS "OpenCV imgcodecs missing")
     find_package(OpenCV REQUIRED COMPONENTS core highgui imgproc)
   endif()
   include_directories(SYSTEM ${OpenCV_INCLUDE_DIRS})
   list(APPEND mxnet_LINKER_LIBS ${OpenCV_LIBS})
   message(STATUS " OpenCV_LIBS=${OpenCV_LIBS}")
-  message(STATUS "OpenCV found (${OpenCV_CONFIG_PATH})")
+  message(STATUS "OpenCV ${OpenCV_VERSION} found (${OpenCV_CONFIG_PATH})")
   add_definitions(-DMXNET_USE_OPENCV=1)
 else(USE_OPENCV)
   message(STATUS "OpenCV Disabled")
@@ -340,7 +341,11 @@ if(USE_OPENMP)
   find_package(OpenMP REQUIRED)
   # This should build on Windows, but there's some problem and I don't have a Windows box, so
   # could a Windows user please fix?
-  if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/openmp/CMakeLists.txt AND SYSTEM_ARCHITECTURE STREQUAL "x86_64" AND NOT MSVC)
+  if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/openmp/CMakeLists.txt
+     AND SYSTEM_ARCHITECTURE STREQUAL "x86_64"
+     AND NOT MSVC
+     AND NOT CMAKE_CROSSCOMPILING)
+
     # Intel/llvm OpenMP: https://github.com/llvm-mirror/openmp
     set(OPENMP_STANDALONE_BUILD TRUE)
     set(LIBOMP_ENABLE_SHARED TRUE)
@@ -648,7 +653,7 @@ if(USE_PLUGINS_WARPCTC)
 endif()
 
 
-if(USE_OPENCV)
+if(USE_OPENCV AND OpenCV_VERSION_MAJOR GREATER 2)
   add_executable(im2rec "tools/im2rec.cc")
   if(MSVC)
     target_link_libraries(im2rec mxnet)
@@ -662,6 +667,9 @@ if(USE_OPENCV)
     ${nnvm_LINKER_LIBS}
     ${pslite_LINKER_LIBS}
     )
+else()
+    message(WARNING "OpenCV_VERSION_MAJOR: ${OpenCV_VERSION_MAJOR}, version 3 with imgcodecs \
+    is required for im2rec, im2rec will not be available")
 endif()
 
 target_link_libraries(mxnet PUBLIC dmlc)
diff --git a/Makefile b/Makefile
index 03212841fa3..ff4446ab80c 100644
--- a/Makefile
+++ b/Makefile
@@ -477,7 +477,7 @@ endif
 $(PS_PATH)/build/libps.a: PSLITE
 
 PSLITE:
-	$(MAKE) CXX=$(CXX) DEPS_PATH=$(DEPS_PATH) -C $(PS_PATH) ps
+	$(MAKE) CXX="$(CXX)" DEPS_PATH="$(DEPS_PATH)" -C $(PS_PATH) ps
 
 $(DMLC_CORE)/libdmlc.a: DMLCCORE
 
diff --git a/ci/README.md b/ci/README.md
index 1c59a3af7c8..ca46434a30f 100644
--- a/ci/README.md
+++ b/ci/README.md
@@ -54,7 +54,7 @@ The artifacts are located in the build/ directory in the project root. In case
 
 ## Add a platform
 
-To add a platform, you should add the appropiate dockerfile in
+To add a platform, you should add the appropriate dockerfile in
 docker/Dockerfile.build.<platform> and add a shell function named
 build_<platform> to the file docker/runtime_functions.sh with build
 instructions for that platform.
@@ -63,3 +63,9 @@ instructions for that platform.
 Due to current limitations of the CMake build system creating artifacts in the
 source 3rdparty folder of the parent mxnet sources concurrent builds of
 different platforms is NOT SUPPORTED.
+
+## ccache
+For all builds a directory from the host system is mapped where ccache will store cached 
+compiled object files (defaults to /tmp/ci_ccache). This will speed up rebuilds 
+significantly. You can set this directory explicitly by setting CCACHE_DIR environment 
+variable. All ccache instances are currently set to be 10 Gigabytes max in size.
diff --git a/ci/build.py b/ci/build.py
index e52fa794bc9..4473f54210a 100755
--- a/ci/build.py
+++ b/ci/build.py
@@ -33,13 +33,15 @@
 import shutil
 import subprocess
 import sys
+import tempfile
 from copy import deepcopy
 from itertools import chain
 from subprocess import call, check_call
 from typing import *
 
+CCACHE_MAXSIZE = '10G'
 
-def get_platforms(path: Optional[str]="docker"):
+def get_platforms(path: Optional[str] = "docker"):
     """Get a list of architectures given our dockerfiles"""
     dockerfiles = glob.glob(os.path.join(path, "Dockerfile.build.*"))
     dockerfiles = list(filter(lambda x: x[-1] != '~', dockerfiles))
@@ -72,11 +74,11 @@ def build_docker(platform: str, docker_binary: str, registry: str) -> None:
     tag = get_docker_tag(platform=platform, registry=registry)
     logging.info("Building container tagged '%s' with %s", tag, docker_binary)
     cmd = [docker_binary, "build",
-        "-f", get_dockerfile(platform),
-        "--build-arg", "USER_ID={}".format(os.getuid()),
-        "--cache-from", tag,
-        "-t", tag,
-        "docker"]
+           "-f", get_dockerfile(platform),
+           "--build-arg", "USER_ID={}".format(os.getuid()),
+           "--cache-from", tag,
+           "-t", tag,
+           "docker"]
     logging.info("Running command: '%s'", ' '.join(cmd))
     check_call(cmd)
 
@@ -102,8 +104,10 @@ def _get_local_image_id(docker_binary, docker_tag):
 
 def get_mxnet_root() -> str:
     curpath = os.path.abspath(os.path.dirname(__file__))
+
     def is_mxnet_root(path: str) -> bool:
         return os.path.exists(os.path.join(path, ".mxnet_root"))
+
     while not is_mxnet_root(curpath):
         parent = os.path.abspath(os.path.join(curpath, os.pardir))
         if parent == curpath:
@@ -116,10 +120,20 @@ def buildir() -> str:
     return os.path.join(get_mxnet_root(), "build")
 
 
+def default_ccache_dir() -> str:
+    if 'CCACHE_DIR' in os.environ:
+        ccache_dir = os.path.realpath(os.environ['CCACHE_DIR'])
+        os.makedirs(ccache_dir, exist_ok=True)
+        return ccache_dirpython
+    # Share ccache across containers
+    return os.path.join(tempfile.gettempdir(), "ci_ccache")
+
+
 def container_run(platform: str,
                   docker_binary: str,
                   docker_registry: str,
                   shared_memory_size: str,
+                  local_ccache_dir: str,
                   command: List[str],
                   dry_run: bool = False,
                   into_container: bool = False) -> str:
@@ -128,12 +142,17 @@ def container_run(platform: str,
     local_build_folder = buildir()
     # We need to create it first, otherwise it will be created by the docker daemon with root only permissions
     os.makedirs(local_build_folder, exist_ok=True)
+    os.makedirs(local_ccache_dir, exist_ok=True)
+    logging.info("Using ccache directory: %s", local_ccache_dir)
     runlist = [docker_binary, 'run', '--rm', '-t',
-        '--shm-size={}'.format(shared_memory_size),
-        '-v', "{}:/work/mxnet".format(mx_root), # mount mxnet root
-        '-v', "{}:/work/build".format(local_build_folder), # mount mxnet/build for storing build artifacts
-        '-u', '{}:{}'.format(os.getuid(), os.getgid()),
-        tag]
+               '--shm-size={}'.format(shared_memory_size),
+               '-v', "{}:/work/mxnet".format(mx_root),  # mount mxnet root
+               '-v', "{}:/work/build".format(local_build_folder),  # mount mxnet/build for storing build artifacts
+               '-v', "{}:/work/ccache".format(local_ccache_dir),
+               '-u', '{}:{}'.format(os.getuid(), os.getgid()),
+               '-e', 'CCACHE_MAXSIZE={}'.format(CCACHE_MAXSIZE),
+               '-e', "CCACHE_DIR=/work/ccache",  # this path is inside the container as /work/ccache is mounted
+               tag]
     runlist.extend(command)
     cmd = ' '.join(runlist)
     if not dry_run and not into_container:
@@ -160,19 +179,17 @@ def container_run(platform: str,
 def list_platforms() -> str:
     print("\nSupported platforms:\n{}".format('\n'.join(get_platforms())))
 
-
 def load_docker_cache(tag, docker_registry) -> None:
     if docker_registry:
         try:
             import docker_cache
-            logging.info('Docker cache download is enabled')
+            logging.info('Docker cache download is enabled from registry %s', docker_registry)
             docker_cache.load_docker_cache(registry=docker_registry, docker_tag=tag)
         except Exception:
             logging.exception('Unable to retrieve Docker cache. Continue without...')
     else:
         logging.info('Distributed docker cache disabled')
 
-
 def main() -> int:
     # We need to be in the same directory than the script so the commands in the dockerfiles work as
     # expected. But the script can be invoked from a different path
@@ -187,7 +204,7 @@ def script_name() -> str:
     logging.basicConfig(format='{}: %(asctime)-15s %(message)s'.format(script_name()))
 
     parser = argparse.ArgumentParser(description="""Utility for building and testing MXNet on docker
-    containers""",epilog="")
+    containers""", epilog="")
     parser.add_argument("-p", "--platform",
                         help="platform",
                         type=str)
@@ -221,63 +238,75 @@ def script_name() -> str:
                         help="go in a shell inside the container",
                         action='store_true')
 
-    parser.add_argument("--docker-registry",
-                        help="Dockerhub registry name to retrieve cache from",
+    parser.add_argument("-d", "--docker-registry",
+                        help="Dockerhub registry name to retrieve cache from. Default is 'mxnetci'",
                         default='mxnetci',
                         type=str)
 
+    parser.add_argument("-c", "--cache", action="store_true",
+                        help="Enable docker registry cache")
+
     parser.add_argument("command",
                         help="command to run in the container",
                         nargs='*', action='append', type=str)
 
+    parser.add_argument("--ccache-dir",
+                        default=default_ccache_dir(),
+                        help="Ccache directory",
+                        type=str)
+
     args = parser.parse_args()
-    docker_registry = args.docker_registry
+    def use_cache():
+        return args.cache or 'JOB_NAME' in os.environ # we are in Jenkins
+
     command = list(chain(*args.command))
     docker_binary = get_docker_binary(args.nvidiadocker)
     shared_memory_size = args.shared_memory_size
 
-    print("into container: {}".format(args.into_container))
     if args.list:
         list_platforms()
     elif args.platform:
         platform = args.platform
-        tag = get_docker_tag(platform=platform, registry=docker_registry)
-        load_docker_cache(tag=tag, docker_registry=args.docker_registry)
-        build_docker(platform, docker_binary, registry=docker_registry)
+        tag = get_docker_tag(platform=platform, registry=args.docker_registry)
+        if use_cache():
+            load_docker_cache(tag=tag, docker_registry=args.docker_registry)
+        build_docker(platform, docker_binary, registry=args.docker_registry)
         if args.build_only:
             logging.warning("Container was just built. Exiting due to build-only.")
             return 0
 
         if command:
             container_run(platform=platform, docker_binary=docker_binary, shared_memory_size=shared_memory_size,
-                          command=command, docker_registry=docker_registry)
+                          command=command, docker_registry=args.docker_registry, local_ccache_dir=args.ccache_dir)
         elif args.print_docker_run:
             print(container_run(platform=platform, docker_binary=docker_binary, shared_memory_size=shared_memory_size,
-                                command=[], dry_run=True, docker_registry=docker_registry))
+                                command=[], dry_run=True, docker_registry=args.docker_registry, local_ccache_dir=args.ccache_dir))
         elif args.into_container:
             container_run(platform=platform, docker_binary=docker_binary, shared_memory_size=shared_memory_size,
-                          command=[], dry_run=False, into_container=True, docker_registry=docker_registry)
+                          command=[], dry_run=False, into_container=True, docker_registry=args.docker_registry,
+                          local_ccache_dir=args.ccache_dir)
         else:
             cmd = ["/work/mxnet/ci/docker/runtime_functions.sh", "build_{}".format(platform)]
             logging.info("No command specified, trying default build: %s", ' '.join(cmd))
             container_run(platform=platform, docker_binary=docker_binary, shared_memory_size=shared_memory_size,
-                          command=cmd, docker_registry=docker_registry)
+                          command=cmd, docker_registry=args.docker_registry, local_ccache_dir=args.ccache_dir)
 
     elif args.all:
         platforms = get_platforms()
         logging.info("Building for all architectures: {}".format(platforms))
         logging.info("Artifacts will be produced in the build/ directory.")
         for platform in platforms:
-            tag = get_docker_tag(platform=platform, registry=docker_registry)
-            load_docker_cache(tag=tag, docker_registry=args.docker_registry)
-            build_docker(platform, docker_binary)
+            tag = get_docker_tag(platform=platform, registry=args.docker_registry)
+            if use_cache():
+                load_docker_cache(tag=tag, docker_registry=args.docker_registry)
+            build_docker(platform, docker_binary, args.docker_registry)
             if args.build_only:
                 continue
             build_platform = "build_{}".format(platform)
             cmd = ["/work/mxnet/ci/docker/runtime_functions.sh", build_platform]
             shutil.rmtree(buildir(), ignore_errors=True)
             container_run(platform=platform, docker_binary=docker_binary, shared_memory_size=shared_memory_size,
-                          command=cmd, docker_registry=docker_registry)
+                          command=cmd, docker_registry=args.docker_registry, local_ccache_dir=args.ccache_dir)
             plat_buildir = os.path.join(get_mxnet_root(), build_platform)
             shutil.move(buildir(), plat_buildir)
             logging.info("Built files left in: %s", plat_buildir)
diff --git a/ci/docker/Dockerfile.build.android_arm64 b/ci/docker/Dockerfile.build.android_arm64
index d7687514d7a..04ba5c90ea3 100755
--- a/ci/docker/Dockerfile.build.android_arm64
+++ b/ci/docker/Dockerfile.build.android_arm64
@@ -18,13 +18,20 @@
 #
 # Dockerfile to build MXNet for Android ARM64/ARMv8
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 FROM dockcross/base:latest
 MAINTAINER Pedro Larroy "pllarroy@amazon.com"
 
-# The cross-compiling emulator
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
 RUN apt-get update && apt-get install -y \
-  qemu-user \
-  qemu-user-static \
   unzip
 
 ENV CROSS_TRIPLE=aarch64-linux-android
diff --git a/ci/docker/Dockerfile.build.android_armv7 b/ci/docker/Dockerfile.build.android_armv7
index c22e000cad1..70bb9fb0eae 100755
--- a/ci/docker/Dockerfile.build.android_armv7
+++ b/ci/docker/Dockerfile.build.android_armv7
@@ -18,9 +18,19 @@
 #
 # Dockerfile to build MXNet for Android ARMv7
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 FROM dockcross/base:latest
 MAINTAINER Pedro Larroy "pllarroy@amazon.com"
 
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
 # The cross-compiling emulator
 RUN apt-get update && apt-get install -y \
   qemu-user \
diff --git a/ci/docker/Dockerfile.build.arm64 b/ci/docker/Dockerfile.build.arm64
index ec949600f73..2a950078b42 100755
--- a/ci/docker/Dockerfile.build.arm64
+++ b/ci/docker/Dockerfile.build.arm64
@@ -18,22 +18,34 @@
 #
 # Dockerfile to build MXNet for ARM64/ARMv8
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 # Temporary fix due to https://github.com/apache/incubator-mxnet/issues/10837
 #FROM dockcross/linux-arm64
 FROM mxnetci/dockcross-linux-arm64:05082018
 
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
 ENV ARCH aarch64
-ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
 ENV HOSTCC gcc
 ENV TARGET ARMV8
 
-WORKDIR /work
+WORKDIR /work/deps
+
+COPY install/ubuntu_arm.sh /work/
+RUN /work/ubuntu_arm.sh
+
+COPY install/arm_openblas.sh /work/
+RUN /work/arm_openblas.sh
 
-# Build OpenBLAS
-RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \
-    cd OpenBLAS && \
-    make -j$(nproc) && \
-    PREFIX=${CROSS_ROOT} make install
+ENV OpenBLAS_HOME=${CROSS_ROOT}
+ENV OpenBLAS_DIR=${CROSS_ROOT}
 
 COPY runtime_functions.sh /work/
-WORKDIR /work/mxnet
+WORKDIR /work/build
diff --git a/ci/docker/Dockerfile.build.armv6 b/ci/docker/Dockerfile.build.armv6
index 20739dabe2e..93be54025f4 100755
--- a/ci/docker/Dockerfile.build.armv6
+++ b/ci/docker/Dockerfile.build.armv6
@@ -18,20 +18,32 @@
 #
 # Dockerfile to build MXNet for ARMv6
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 FROM dockcross/linux-armv6
 
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
 ENV ARCH armv6l
-ENV FC=/usr/bin/${CROSS_TRIPLE}-gfortran
 ENV HOSTCC gcc
 ENV TARGET ARMV6
 
 WORKDIR /work/deps
 
-# Build OpenBLAS
-RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \
-    cd OpenBLAS && \
-    make -j$(nproc) && \
-    make PREFIX=$CROSS_ROOT install
+COPY install/ubuntu_arm.sh /work/
+RUN /work/ubuntu_arm.sh
+
+COPY install/arm_openblas.sh /work/
+RUN /work/arm_openblas.sh
+
+ENV OpenBLAS_HOME=${CROSS_ROOT}
+ENV OpenBLAS_DIR=${CROSS_ROOT}
 
 COPY runtime_functions.sh /work/
 WORKDIR /work/mxnet
diff --git a/ci/docker/Dockerfile.build.armv7 b/ci/docker/Dockerfile.build.armv7
index c2493063518..95e05e7cb51 100755
--- a/ci/docker/Dockerfile.build.armv7
+++ b/ci/docker/Dockerfile.build.armv7
@@ -18,15 +18,32 @@
 #
 # Dockerfile to build MXNet for Android ARMv7
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 FROM dockcross/linux-armv7
 
-ENV ARCH armv71
-ENV CC /usr/bin/arm-linux-gnueabihf-gcc
-ENV CXX /usr/bin/arm-linux-gnueabihf-g++
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
+ENV ARCH armv7l
+ENV HOSTCC gcc
+ENV TARGET ARMV7
+
+WORKDIR /work/deps
+
+COPY install/ubuntu_arm.sh /work/
+RUN /work/ubuntu_arm.sh
+
+COPY install/arm_openblas.sh /work/
+RUN /work/arm_openblas.sh
 
-RUN apt-get update && \
-    apt-get install -y libopenblas-dev:armhf && \
-    rm -rf /var/lib/apt/lists/*
+ENV OpenBLAS_HOME=${CROSS_ROOT}
+ENV OpenBLAS_DIR=${CROSS_ROOT}
 
 COPY runtime_functions.sh /work/
-WORKDIR /work/build
+WORKDIR /work/mxnet
diff --git a/ci/docker/Dockerfile.build.centos7_cpu b/ci/docker/Dockerfile.build.centos7_cpu
index 92314faf121..076ef5df911 100755
--- a/ci/docker/Dockerfile.build.centos7_cpu
+++ b/ci/docker/Dockerfile.build.centos7_cpu
@@ -24,6 +24,8 @@ WORKDIR /work/deps
 
 COPY install/centos7_core.sh /work/
 RUN /work/centos7_core.sh
+COPY install/centos7_ccache.sh /work/
+RUN /work/centos7_ccache.sh
 COPY install/centos7_python.sh /work/
 RUN /work/centos7_python.sh
 COPY install/ubuntu_mklml.sh /work/
diff --git a/ci/docker/Dockerfile.build.centos7_gpu b/ci/docker/Dockerfile.build.centos7_gpu
index 2d28170f11b..8bf2442731a 100755
--- a/ci/docker/Dockerfile.build.centos7_gpu
+++ b/ci/docker/Dockerfile.build.centos7_gpu
@@ -24,6 +24,8 @@ WORKDIR /work/deps
 
 COPY install/centos7_core.sh /work/
 RUN /work/centos7_core.sh
+COPY install/centos7_ccache.sh /work/
+RUN /work/centos7_ccache.sh
 COPY install/centos7_python.sh /work/
 RUN /work/centos7_python.sh
 
diff --git a/ci/docker/Dockerfile.build.jetson b/ci/docker/Dockerfile.build.jetson
index c358edb1fb0..098225e5af5 100755
--- a/ci/docker/Dockerfile.build.jetson
+++ b/ci/docker/Dockerfile.build.jetson
@@ -22,22 +22,34 @@
 
 FROM nvidia/cuda:9.0-cudnn7-devel as cudabuilder
 
+FROM ubuntu:16.04 as ccachebuilder
+
+COPY install/ubuntu_core.sh /work/
+RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
+
 # Temporary fix due to https://github.com/apache/incubator-mxnet/issues/10837
 # FROM dockcross/linux-arm64
 FROM mxnetci/dockcross-linux-arm64:05082018
 
+# extract ccache binary into latest context
+COPY --from=ccachebuilder /usr/local/bin/ccache /usr/local/bin/ccache
+
 ENV ARCH aarch64
-ENV FC /usr/bin/${CROSS_TRIPLE}-gfortran
 ENV HOSTCC gcc
 ENV TARGET ARMV8
 
-WORKDIR /work
+WORKDIR /work/deps
+
+COPY install/ubuntu_arm.sh /work/
+RUN /work/ubuntu_arm.sh
+
+COPY install/arm_openblas.sh /work/
+RUN /work/arm_openblas.sh
 
-# Build OpenBLAS
-RUN git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git && \
-    cd OpenBLAS && \
-    make -j$(nproc) && \
-    PREFIX=${CROSS_ROOT} make install
+ENV OpenBLAS_HOME=${CROSS_ROOT}
+ENV OpenBLAS_DIR=${CROSS_ROOT}
 
 # Setup CUDA build env (including configuring and copying nvcc)
 COPY --from=cudabuilder /usr/local/cuda /usr/local/cuda
diff --git a/ci/docker/Dockerfile.build.ubuntu_build_cuda b/ci/docker/Dockerfile.build.ubuntu_build_cuda
index 4d3c4664363..a87651a4f5a 100755
--- a/ci/docker/Dockerfile.build.ubuntu_build_cuda
+++ b/ci/docker/Dockerfile.build.ubuntu_build_cuda
@@ -27,6 +27,8 @@ WORKDIR /work/deps
 
 COPY install/ubuntu_core.sh /work/
 RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
 COPY install/ubuntu_python.sh /work/
 RUN /work/ubuntu_python.sh
 COPY install/ubuntu_scala.sh /work/
diff --git a/ci/docker/Dockerfile.build.ubuntu_cpu b/ci/docker/Dockerfile.build.ubuntu_cpu
index 2dc7ef13f21..f82ee75c482 100755
--- a/ci/docker/Dockerfile.build.ubuntu_cpu
+++ b/ci/docker/Dockerfile.build.ubuntu_cpu
@@ -24,6 +24,8 @@ WORKDIR /work/deps
 
 COPY install/ubuntu_core.sh /work/
 RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
 COPY install/ubuntu_python.sh /work/
 RUN /work/ubuntu_python.sh
 COPY install/ubuntu_scala.sh /work/
diff --git a/ci/docker/Dockerfile.build.ubuntu_gpu b/ci/docker/Dockerfile.build.ubuntu_gpu
index 10971724aaa..5f4bfc5a87d 100755
--- a/ci/docker/Dockerfile.build.ubuntu_gpu
+++ b/ci/docker/Dockerfile.build.ubuntu_gpu
@@ -24,6 +24,8 @@ WORKDIR /work/deps
 
 COPY install/ubuntu_core.sh /work/
 RUN /work/ubuntu_core.sh
+COPY install/ubuntu_ccache.sh /work/
+RUN /work/ubuntu_ccache.sh
 COPY install/ubuntu_python.sh /work/
 RUN /work/ubuntu_python.sh
 COPY install/ubuntu_scala.sh /work/
diff --git a/ci/docker/install/arm_openblas.sh b/ci/docker/install/arm_openblas.sh
new file mode 100755
index 00000000000..fa2e5cae9cb
--- /dev/null
+++ b/ci/docker/install/arm_openblas.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -ex
+
+git clone --recursive -b v0.2.20 https://github.com/xianyi/OpenBLAS.git
+
+cd OpenBLAS
+make -j$(nproc)
+PREFIX=${CROSS_ROOT} make install
+
+cd ..
+
+rm -rf OpenBLAS
diff --git a/ci/docker/install/centos7_ccache.sh b/ci/docker/install/centos7_ccache.sh
new file mode 100755
index 00000000000..846a407001b
--- /dev/null
+++ b/ci/docker/install/centos7_ccache.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Script to build ccache for centos7 based images
+
+set -ex
+
+pushd .
+
+yum -y install autoconf
+yum -y install asciidoc
+
+mkdir -p /work/deps
+cd /work/deps
+
+git clone --recursive -b v3.4.2 https://github.com/ccache/ccache.git
+
+cd ccache
+
+./autogen.sh
+./configure
+make -j$(nproc)
+make install
+
+cd /work/deps
+rm -rf /work/deps/ccache
+
+popd
+
diff --git a/ci/docker/install/ubuntu_arm.sh b/ci/docker/install/ubuntu_arm.sh
new file mode 100755
index 00000000000..becb012bd18
--- /dev/null
+++ b/ci/docker/install/ubuntu_arm.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -ex
+
+apt update
+apt install -y \
+    unzip
diff --git a/ci/docker/install/ubuntu_ccache.sh b/ci/docker/install/ubuntu_ccache.sh
new file mode 100755
index 00000000000..4a6b63f0f72
--- /dev/null
+++ b/ci/docker/install/ubuntu_ccache.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Script to build ccache for ubuntu based images
+
+set -ex
+
+pushd .
+
+apt update
+apt install -y \
+    libxslt1-dev \
+    docbook-xsl \
+    xsltproc \
+    libxml2-utils
+
+apt install -y --no-install-recommends \
+    autoconf \
+    asciidoc \
+    xsltproc
+
+mkdir -p /work/deps
+cd /work/deps
+
+git clone --recursive -b v3.4.2 https://github.com/ccache/ccache.git
+
+cd ccache
+
+./autogen.sh
+./configure
+
+# Don't build documentation #11214
+#perl -pi -e 's!\s+\Q$(installcmd) -d $(DESTDIR)$(mandir)/man1\E!!g' Makefile
+#perl -pi -e 's!\s+\Q-$(installcmd) -m 644 ccache.1 $(DESTDIR)$(mandir)/man1/\E!!g' Makefile
+make -j$(nproc)
+make install
+
+rm -rf /work/deps/ccache
+
+popd
+
diff --git a/ci/docker/install/ubuntu_r.sh b/ci/docker/install/ubuntu_r.sh
index e04e94d6486..4bf1a897e08 100755
--- a/ci/docker/install/ubuntu_r.sh
+++ b/ci/docker/install/ubuntu_r.sh
@@ -27,4 +27,4 @@ gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
 gpg -a --export E084DAB9 | apt-key add -
 
 apt-get update
-apt-get install -y r-base r-base-dev libxml2-dev libssl-dev libxt-dev
\ No newline at end of file
+apt-get install -y --allow-unauthenticated r-base r-base-dev libxml2-dev libssl-dev libxt-dev
diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index fa9de6112ff..550f44658d9 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -31,31 +31,80 @@ clean_repo() {
     git submodule update --init --recursive
 }
 
+build_ccache_wrappers() {
+    set -ex
 
-# Build commands: Every platform in docker/Dockerfile.build.<platform> should have a corresponding
-# function here with the same suffix:
+    rm -f cc
+    rm -f cxx
+
+    touch cc
+    touch cxx
+
+    if [ -z ${CC+x} ]; then
+        echo "No \$CC set, defaulting to gcc";
+        export CC=gcc
+    fi
+
+    if [ -z ${CXX+x} ]; then
+       echo "No \$CXX set, defaulting to g++";
+       export CXX=g++
+    fi
+
+    # this function is nessesary for cuda enabled make based builds, since nvcc needs just an executable for -ccbin
+
+    echo -e "#!/bin/sh\n/usr/local/bin/ccache ${CC} \"\$@\"\n" >> cc
+    echo -e "#!/bin/sh\n/usr/local/bin/ccache ${CXX} \"\$@\"\n" >> cxx
+
+    chmod +x cc
+    chmod +x cxx
+
+    export CC=`pwd`/cc
+    export CXX=`pwd`/cxx
+}
+
+build_wheel() {
 
-build_jetson() {
     set -ex
     pushd .
-    mv make/crosscompile.jetson.mk make/config.mk
-    make -j$(nproc)
 
-    export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
-    cd /work/mxnet/python
+    PYTHON_DIR=${1:-/work/mxnet/python}
+    BUILD_DIR=${2:-/work/build}
+
+    # build
+
+    export MXNET_LIBRARY_PATH=${BUILD_DIR}/libmxnet.so
+
+    cd ${PYTHON_DIR}
     python setup.py bdist_wheel --universal
 
+    # repackage
+
     # Fix pathing issues in the wheel.  We need to move libmxnet.so from the data folder to the
     # mxnet folder, then repackage the wheel.
     WHEEL=`readlink -f dist/*.whl`
     TMPDIR=`mktemp -d`
-    unzip -d $TMPDIR $WHEEL
-    rm $WHEEL
-    cd $TMPDIR
+    unzip -d ${TMPDIR} ${WHEEL}
+    rm ${WHEEL}
+    cd ${TMPDIR}
     mv *.data/data/mxnet/libmxnet.so mxnet
-    zip -r $WHEEL .
-    cp $WHEEL /work/build
-    rm -rf $TMPDIR
+    zip -r ${WHEEL} .
+    cp ${WHEEL} ${BUILD_DIR}
+    rm -rf ${TMPDIR}
+
+    popd
+}
+
+# Build commands: Every platform in docker/Dockerfile.build.<platform> should have a corresponding
+# function here with the same suffix:
+
+build_jetson() {
+    set -ex
+    pushd .
+
+    cp make/crosscompile.jetson.mk ./config.mk
+    make -j$(nproc)
+
+    build_wheel /work/mxnet/python /work/mxnet/lib
     popd
 }
 
@@ -72,7 +121,9 @@ build_armv6() {
     # We do not need OpenMP, since most armv6 systems have only 1 core
 
     cmake \
-        -DCMAKE_TOOLCHAIN_FILE=$CROSS_ROOT/Toolchain.cmake \
+        -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=OFF \
         -DUSE_OPENCV=OFF \
         -DUSE_OPENMP=OFF \
@@ -83,11 +134,9 @@ build_armv6() {
         -DBUILD_CPP_EXAMPLES=OFF \
         -Dmxnet_LINKER_LIBS=-lgfortran \
         -G Ninja /work/mxnet
-    ninja
-    export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
-    cd /work/mxnet/python
-    python setup.py bdist_wheel --universal
-    cp dist/*.whl /work/build
+
+    ninja -v
+    build_wheel
     popd
 }
 
@@ -95,25 +144,38 @@ build_armv7() {
     set -ex
     pushd .
     cd /work/build
-    cmake\
-        -DUSE_CUDA=OFF\
-        -DUSE_OPENCV=OFF\
-        -DUSE_OPENMP=OFF\
-        -DUSE_SIGNAL_HANDLER=ON\
-        -DCMAKE_BUILD_TYPE=RelWithDebInfo\
-        -DUSE_MKL_IF_AVAILABLE=OFF\
+
+    # Lapack functionality will be included and statically linked to openblas.
+    # But USE_LAPACK needs to be set to OFF, otherwise the main CMakeLists.txt
+    # file tries to add -llapack. Lapack functionality though, requires -lgfortran
+    # to be linked additionally.
+
+    cmake \
+        -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} \
+        -DCMAKE_CROSSCOMPILING=ON \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
+        -DUSE_CUDA=OFF \
+        -DUSE_OPENCV=OFF \
+        -DUSE_OPENMP=ON \
+        -DUSE_SIGNAL_HANDLER=ON \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DUSE_MKL_IF_AVAILABLE=OFF \
+        -DUSE_LAPACK=OFF \
+        -DBUILD_CPP_EXAMPLES=OFF \
+        -Dmxnet_LINKER_LIBS=-lgfortran \
         -G Ninja /work/mxnet
-    ninja
-    export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
-    cd /work/mxnet/python
-    python setup.py bdist_wheel --universal
-    cp dist/*.whl /work/build
+
+    ninja -v -j1
+    build_wheel
     popd
 }
 
 build_amzn_linux_cpu() {
     cd /work/build
-    cmake\
+    cmake \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=OFF\
         -DUSE_OPENCV=ON\
         -DUSE_OPENMP=ON\
@@ -123,20 +185,23 @@ build_amzn_linux_cpu() {
         -DUSE_LAPACK=OFF\
         -DUSE_DIST_KVSTORE=ON\
         -G Ninja /work/mxnet
-    ninja
+    ninja -v
     export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
 }
 
 build_arm64() {
-    cmake\
+    cmake \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=OFF\
+        -DSUPPORT_F16C=OFF\
         -DUSE_OPENCV=OFF\
         -DUSE_OPENMP=OFF\
         -DUSE_SIGNAL_HANDLER=ON\
-        -DCMAKE_BUILD_TYPE=RelWithDebInfo\
+        -DCMAKE_BUILD_TYPE=Release\
         -DUSE_MKL_IF_AVAILABLE=OFF\
         -G Ninja /work/mxnet
-    ninja
+    ninja -v
     export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
     cd /work/mxnet/python
     python setup.py bdist_wheel --universal
@@ -146,9 +211,12 @@ build_arm64() {
 build_android_arm64() {
     set -ex
     cd /work/build
-    cmake\
+    cmake \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=OFF\
         -DUSE_SSE=OFF\
+        -DSUPPORT_F16C=OFF\
         -DUSE_LAPACK=OFF\
         -DUSE_OPENCV=OFF\
         -DUSE_OPENMP=OFF\
@@ -156,7 +224,7 @@ build_android_arm64() {
         -DCMAKE_BUILD_TYPE=RelWithDebInfo\
         -DUSE_MKL_IF_AVAILABLE=OFF\
         -G Ninja /work/mxnet
-    ninja
+    ninja -v
     export MXNET_LIBRARY_PATH=`pwd`/libmxnet.so
     cd /work/mxnet/python
     python setup.py bdist_wheel --universal
@@ -166,6 +234,8 @@ build_android_arm64() {
 build_centos7_cpu() {
     set -ex
     cd /work/mxnet
+    export CC="ccache gcc"
+    export CXX="ccache g++"
     make \
         DEV=1 \
         USE_LAPACK=1 \
@@ -178,6 +248,8 @@ build_centos7_cpu() {
 build_centos7_mkldnn() {
     set -ex
     cd /work/mxnet
+    export CC="ccache gcc"
+    export CXX="ccache g++"
     make \
         DEV=1 \
         USE_LAPACK=1 \
@@ -190,6 +262,8 @@ build_centos7_mkldnn() {
 build_centos7_gpu() {
     set -ex
     cd /work/mxnet
+    # unfortunately this build has problems in 3rdparty dependencies with ccache and make
+    # build_ccache_wrappers
     make \
         DEV=1 \
         USE_LAPACK=1 \
@@ -202,8 +276,14 @@ build_centos7_gpu() {
         -j$(nproc)
 }
 
+build_ubuntu_cpu() {
+    build_ubuntu_cpu_openblas
+}
+
 build_ubuntu_cpu_openblas() {
     set -ex
+    export CC="ccache gcc"
+    export CXX="ccache g++"
     make \
         DEV=1                         \
         USE_CPP_PACKAGE=1             \
@@ -214,54 +294,71 @@ build_ubuntu_cpu_openblas() {
 
 build_ubuntu_cpu_clang39() {
     set -ex
+
+    export CXX=clang++-3.9
+    export CC=clang-3.9
+
+    build_ccache_wrappers
+
     make \
         USE_CPP_PACKAGE=1             \
         USE_BLAS=openblas             \
         USE_OPENMP=0                  \
         USE_DIST_KVSTORE=1            \
-        CXX=clang++-3.9               \
-        CC=clang-3.9                  \
         -j$(nproc)
 }
 
 build_ubuntu_cpu_clang50() {
     set -ex
-    make \
+
+    export CXX=clang++-5.0
+    export CC=clang-5.0
+
+    build_ccache_wrappers
+
+    make  \
         USE_CPP_PACKAGE=1             \
         USE_BLAS=openblas             \
         USE_OPENMP=1                  \
         USE_DIST_KVSTORE=1            \
-        CXX=clang++-5.0               \
-        CC=clang-5.0                  \
         -j$(nproc)
 }
 
 build_ubuntu_cpu_clang39_mkldnn() {
     set -ex
+
+    export CXX=clang++-3.9
+    export CC=clang-3.9
+
+    build_ccache_wrappers
+
     make \
         USE_CPP_PACKAGE=1             \
         USE_BLAS=openblas             \
         USE_MKLDNN=1                  \
         USE_OPENMP=0                  \
-        CXX=clang++-3.9               \
-        CC=clang-3.9                  \
         -j$(nproc)
 }
 
 build_ubuntu_cpu_clang50_mkldnn() {
     set -ex
+
+    export CXX=clang++-5.0
+    export CC=clang-5.0
+
+    build_ccache_wrappers
+
     make \
         USE_CPP_PACKAGE=1             \
         USE_BLAS=openblas             \
         USE_MKLDNN=1                  \
         USE_OPENMP=1                  \
-        CXX=clang++-5.0               \
-        CC=clang-5.0                  \
         -j$(nproc)
 }
 
 build_ubuntu_cpu_mkldnn() {
     set -ex
+    build_ccache_wrappers
     make  \
         DEV=1                         \
         USE_CPP_PACKAGE=1             \
@@ -270,8 +367,13 @@ build_ubuntu_cpu_mkldnn() {
         -j$(nproc)
 }
 
+build_ubuntu_gpu() {
+    build_ubuntu_gpu_cuda91_cudnn7
+}
+
 build_ubuntu_gpu_mkldnn() {
     set -ex
+    build_ccache_wrappers
     make  \
         DEV=1                         \
         USE_CPP_PACKAGE=1             \
@@ -285,7 +387,9 @@ build_ubuntu_gpu_mkldnn() {
 
 build_ubuntu_gpu_cuda91_cudnn7() {
     set -ex
-    make  \
+    # unfortunately this build has problems in 3rdparty dependencies with ccache and make
+    # build_ccache_wrappers
+    make \
         DEV=1                         \
         USE_BLAS=openblas             \
         USE_CUDA=1                    \
@@ -314,6 +418,8 @@ build_ubuntu_gpu_cmake_mkldnn() {
     set -ex
     cd /work/build
     cmake \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=1               \
         -DUSE_CUDNN=1              \
         -DUSE_MKLML_MKL=1          \
@@ -332,6 +438,8 @@ build_ubuntu_gpu_cmake() {
     set -ex
     cd /work/build
     cmake \
+        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
+        -DCMAKE_C_COMPILER_LAUNCHER=ccache \
         -DUSE_CUDA=1               \
         -DUSE_CUDNN=1              \
         -DUSE_MKLML_MKL=0          \
@@ -381,7 +489,7 @@ unittest_ubuntu_python3_cpu() {
 
 unittest_ubuntu_python3_cpu_mkldnn() {
     set -ex
-    export PYTHONPATH=./python/ 
+    export PYTHONPATH=./python/
     # MXNET_MKLDNN_DEBUG is buggy and produces false positives
     # https://github.com/apache/incubator-mxnet/issues/10026
     #export MXNET_MKLDNN_DEBUG=1  # Ignored if not present
diff --git a/docs/_static/js/options.js b/docs/_static/js/options.js
index 8fe74ee1904..d2d44b07848 100644
--- a/docs/_static/js/options.js
+++ b/docs/_static/js/options.js
@@ -1,10 +1,47 @@
-//$('.burger-link').on('click', function(e) { e.stopPropagation() });
-//$('.burger-link').on('touchstart', function(e) { e.stopPropagation() });
+var versionSelect   = defaultVersion = 'v1.2.0';
+var deviceSelect    = 'Linux';
+var languageSelect  = 'Python';
+var processorSelect = 'CPU';
+var environSelect   = 'Pip';
 
 $(document).ready(function () {
     function label(lbl) {
         return lbl.replace(/[ .]/g, '-').toLowerCase();
     }
+
+    function setSelects(){
+        let urlParams = new URLSearchParams(window.location.search);
+        if (urlParams.get('version'))
+            versionSelect = urlParams.get('version');
+        $('li a:contains(' + versionSelect + ')').parent().siblings().removeClass('active');
+        $('li a:contains(' + versionSelect + ')').parent().addClass('active');
+        $('.current-version').html( versionSelect + ' <span class="caret"></span></button>' );
+        if (urlParams.get('device'))
+            deviceSelect = urlParams.get('device');
+        $('button:contains(' + deviceSelect + ')').siblings().removeClass('active');
+        $('button:contains(' + deviceSelect + ')').addClass('active');
+        if (urlParams.get('language'))
+            languageSelect = urlParams.get('language');
+        $('button:contains(' + languageSelect + ')').siblings().removeClass('active');
+        $('button:contains(' + languageSelect + ')').addClass('active');
+        if (urlParams.get('processor'))
+            processorSelect = urlParams.get('processor');
+        $('button:contains(' + processorSelect + ')').siblings().removeClass('active');
+        $('button:contains(' + processorSelect + ')').addClass('active');
+        if (urlParams.get('environ'))
+            environSelect = urlParams.get('environ');
+        $('button:contains(' + environSelect + ')').siblings().removeClass('active');
+        $('button:contains(' + environSelect + ')').addClass('active');
+        showContent();
+        if (window.location.href.includes("/install/index.html")) {
+            if (versionSelect.includes(defaultVersion)) {
+                history.pushState(null, null, '/install/index.html?device=' + deviceSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
+            } else {
+                history.pushState(null, null, '/install/index.html?version=' + versionSelect + '&device=' + deviceSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
+            }
+        } 
+    }
+
     function showContent() {
         $('.opt-group .opt').each(function(){
             $('.'+label($(this).text())).hide();
@@ -16,11 +53,35 @@ $(document).ready(function () {
         });
     }
     showContent();
+    setSelects();
     function setContent() {
         var el = $(this);
+        let urlParams = new URLSearchParams(window.location.search);
         el.siblings().removeClass('active');
         el.addClass('active');
+        if ($(this).hasClass("versions")) {
+            $('.current-version').html( $(this).text() + ' <span class="caret"></span></button>' );
+            if (!$(this).text().includes(defaultVersion)) {
+                if (!window.location.search.includes("version")) {
+                    history.pushState(null, null, '/install/index.html' + window.location.search.concat( '&version=' + $(this).text() ));
+                } else {
+                    history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('version'), $(this).text() ));
+                }
+            } else if (window.location.search.includes("version")) {
+                  history.pushState(null, null, '/install/index.html' + window.location.search.replace( 'version', 'prev' ));
+              }
+        }
+        else if ($(this).hasClass("Devices")) {
+            history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('device'), $(this).text() ));
+        }
+        else if ($(this).hasClass("languages")) {
+            history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('language'), $(this).text() ));
+        }
+        else if ($(this).hasClass("processors")) {
+            history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('processor'), $(this).text() ));
+        }
         showContent();
+        //window.location.search = window.location.search.replace( urlParams.get('version'), $(this).text() );
     }
     $('.opt-group').on('click', '.opt', setContent);
 });
diff --git a/docs/api/python/gluon/contrib.md b/docs/api/python/gluon/contrib.md
index bc3089fa878..877a294d9a1 100644
--- a/docs/api/python/gluon/contrib.md
+++ b/docs/api/python/gluon/contrib.md
@@ -35,6 +35,7 @@ In the rest of this document, we list routines provided by the `gluon.contrib` p
     Concurrent
     HybridConcurrent
     Identity
+    SparseEmbedding
 ```
 
 ### Recurrent neural network
@@ -55,6 +56,7 @@ In the rest of this document, we list routines provided by the `gluon.contrib` p
     Conv1DGRUCell
     Conv2DGRUCell
     Conv3DGRUCell
+    LSTMPCell
 ```
 
 ### Data
diff --git a/docs/api/python/ndarray/sparse.md b/docs/api/python/ndarray/sparse.md
index 581a74f15e5..2f1b89c40f5 100644
--- a/docs/api/python/ndarray/sparse.md
+++ b/docs/api/python/ndarray/sparse.md
@@ -169,6 +169,15 @@ We summarize the interface for each class in the following sections.
     CSRNDArray.square
 ```
 
+### Joining arrays
+
+```eval_rst
+.. autosummary::
+    :nosignatures:
+
+    concat
+```
+
 ### Indexing
 
 ```eval_rst
diff --git a/docs/api/python/symbol/sparse.md b/docs/api/python/symbol/sparse.md
index 86191e352c3..d26ba07853d 100644
--- a/docs/api/python/symbol/sparse.md
+++ b/docs/api/python/symbol/sparse.md
@@ -76,6 +76,15 @@ In the rest of this document, we list sparse related routines provided by the
     cast_storage
 ```
 
+### Joining arrays
+
+```eval_rst
+.. autosummary::
+    :nosignatures:
+
+    concat
+```
+
 ### Indexing routines
 
 ```eval_rst
diff --git a/docs/build_version_doc/artifacts/0.12.0.index.html b/docs/build_version_doc/artifacts/0.12.0.index.html
deleted file mode 100644
index 1852ae53dff..00000000000
--- a/docs/build_version_doc/artifacts/0.12.0.index.html
+++ /dev/null
@@ -1,1241 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    
-    
-
-    <title>Installing MXNet &mdash; mxnet  documentation</title>
-    
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-
-    
-    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
-    <link rel="stylesheet" href="../_static/mxnet.css" type="text/css">
-    
-    <script type="text/javascript">
-      var DOCUMENTATION_OPTIONS = {
-        URL_ROOT:    '../',
-        VERSION:     '',
-        COLLAPSE_INDEX: false,
-        FILE_SUFFIX: '.html',
-        HAS_SOURCE:  true,
-        SOURCELINK_SUFFIX: '.txt'
-      };
-    </script>
-
-    <script type="text/javascript" src="../_static/jquery-1.11.1.js"></script>
-    
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    
-    <script type="text/javascript" src="../_static/searchtools_custom.js"></script>
-    
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    
-    <script type="text/javascript" src="../_static/selectlang.js"></script>
-    
-
-    <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    <script type="text/javascript"> jQuery(function() { Search.loadIndex("/searchindex.js"); Search.init();}); </script>
-
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
-      Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
-      ga('create', 'UA-96378503-1', 'auto');
-      ga('send', 'pageview');
-
-    </script>
-
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/jquery.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/underscore.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/doctools.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
-    <!-- -->
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" /> 
-
-    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-icon.png">
-  </head>
-  <body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background.png">
-    <div class='content-block'><div class="navbar navbar-fixed-top">
-  <div class="container" id="navContainer">
-    <div id="header-inner" class="innder">
-      <h1 id="logo-wrap">
-        <a href="../" id="logo"><img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet_logo.png"></a>
-      </h1>
-      <nav id="main-nav" class='nav-bar'>
-        <a class="main-nav-link" href="../install/index.html">Install</a>
-        <a class="main-nav-link" href="../tutorials/index.html">Tutorials</a>
-
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../gluon/index.html">About</a></li>
-            <li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
-          </ul>
-        </span>
-        
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../api/python/index.html">Python</a></li>
-            <li><a class="main-nav-link" href="../api/scala/index.html">Scala</a></li>
-            <li><a class="main-nav-link" href="../api/r/index.html">R</a></li>
-            <li><a class="main-nav-link" href="../api/julia/index.html">Julia</a></li>
-            <li><a class="main-nav-link" href="../api/c++/index.html">C++</a></li>
-            <li><a class="main-nav-link" href="../api/perl/index.html">Perl</a></li>
-          </ul>
-        </span>
-          
-         <span id="dropdown-menu-position-anchor-docs">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Docs <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-docs" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../faq/index.html">FAQ</a></li>
-            <li><a class="main-nav-link" href="../architecture/index.html">Architecture</a></li>
-            <li><a class="main-nav-link" href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-            <li><a class="main-nav-link" href="../model_zoo/index.html">Model Zoo</a></li>
-          </ul>
-        </span>
-
-
-        <a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a>
-
-        <span id="dropdown-menu-position-anchor-community">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Community <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-community" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../community/index.html">Community</a></li>
-            <li><a class="main-nav-link" href="../community/contribute.html">Contribute</a></li>
-            <li><a class="main-nav-link" href="../community/powered_by.html">Powered By</a></li>
-          </ul>
-        </span>
-        <a class="main-nav-link" href="http://discuss.mxnet.io">Discuss</a>
-      </nav>
-      <script> function getRootPath(){ return "../" } </script>
-      <div class="burgerIcon dropdown">
-          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
-          <ul id="burgerMenu" class="dropdown-menu">
-              <li><a href="../install/index.html">Install</a></li>
-              <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a></li>
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Community</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../community/index.html">Community</a></li>
-                  <li><a tabindex="-1"  href="../community/contribute.html">Contribute</a></li>
-                  <li><a tabindex="-1"  href="../community/powered_by.html">Powered By</a></li>
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">API</a>
-                <ul class="dropdown-menu">
-                  
-                    <li><a tabindex="-1" href="../api/python/index.html">Python</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/scala/index.html">Scala</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/r/index.html">R</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/julia/index.html">Julia</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/c++/index.html">C++</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/perl/index.html">Perl</a>
-                    </li>
-                  
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Docs</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../tutorials/index.html">Tutorials</a></li>
-                  <li><a tabindex="-1"  href="../faq/index.html">FAQ</a></li>
-                  <li><a tabindex="-1"  href="../architecture/index.html">Architecture</a></li>
-                  <li><a tabindex="-1"  href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-                  <li><a tabindex="-1"  href="../model_zoo/index.html">Model Zoo</a></li>
-                </ul>
-              </li>
-              <li><a href="../architecture/index.html">Architecture</a></li>
-		      <li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
-          </ul>
-      </div>
-      <div class="plusIcon dropdown">
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
-        <ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
-      </div>
-      <div id="search-input-wrap">
-          
-<form class="" role="search" action="../search.html" method="get" autocomplete="off">
-  <div class="form-group inner-addon left-addon">
-    <i class="glyphicon glyphicon-search"></i>
-    <input type="text" name="q" class="form-control" placeholder="Search">
-  </div>
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-  
-</form>
-          <div id="search-preview"></div>
-      </div>
-      <div id='searchIcon'>
-          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
-      </div>
-      <!-- <div id="lang-select-wrap"> -->
-      <!--   <label id="lang-select-label"> -->
-      <!--     <\!-- <i class="fa fa-globe"></i> -\-> -->
-      <!--     <span></span> -->
-      <!--   </label> -->
-      <!--   <select id="lang-select"> -->
-      <!--     <option value="en">Eng</option> -->
-      <!--     <option value="zh">中文</option> -->
-      <!--   </select> -->
-      <!-- </div> -->
-  <!--     <a id="mobile-nav-toggle">
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-      </a> -->
-    </div>
-  </div>
-</div>
-    
-
-    
-    <script type="text/javascript">
-        $('body').css('background', 'white');
-    </script>
-    <div class="container">
-      <div class="row">
-        <div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
-          <div class="sphinxsidebarwrapper">
-            
-  <ul>
-<li class="toctree-l1"><a class="reference internal" href="../api/python/index.html">Python Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/r/index.html">R Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/julia/index.html">Julia Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/c++/index.html">C++ Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/scala/index.html">Scala Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/perl/index.html">Perl Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../faq/index.html">HowTo Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../architecture/index.html">System Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
-</ul>
-
-          </div>
-        </div>
-        <div class="content">
-          <div class="page-tracker"></div>
-          
-  <div class="section" id="installing-mxnet">
-<span id="installing-mxnet"></span><h1>Installing MXNet<a class="headerlink" href="#installing-mxnet" title="Permalink to this headline">¶</a></h1>
-<p>Indicate your preferred configuration. Then, follow the customized commands to install <em>MXNet</em>.</p>
-<script type="text/javascript" src='../_static/js/options.js'></script><!-- START - OS Menu --><div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
-</div><!-- START - Language Menu --><div class="linux macos windows">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
-</div>
-</div><!-- No CPU GPU for other Devices -->
-<div class="linux macos windows cloud">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
-</div>
-</div><!-- other devices -->
-<div class="devices">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
-</div>
-</div><!-- Linux Python GPU Options --><div class="linux macos">
-<div class="python">
-<div class="cpu gpu">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
-</div>
-</div>
-</div>
-</div><!-- END - Main Menu --><!-- START - Linux Python CPU Installation Instructions --><div class="linux">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<p>To install MXNet 0.12.1 use the following:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==0.12.1 </pre></div></div>
-<p>To install MXNet 0.12.0 use the following:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==0.12.0 </pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python gcc
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.0</pre></div> </div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<p>To install MXNet 0.12.1 with MKL use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-mkl==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 with MKL use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-mkl==0.12.0</pre></div> </div>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and numpy.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-numpy python-pip
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python CPU Installation Instructions --><!-- START - Linux Python GPU Installation Instructions --><div class="linux">
-<div class="python">
-<div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 5 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 8.0</p>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.0</pre></div> </div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<p>To install MXNet 0.12.1 with MKL use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cumkl==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 with MKL use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cumkl==0.12.0</pre></div> </div>
-</div><div class="virtualenv"><p><br/></p>
-<p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with GPU support using CUDA 8.0.</p>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.0</pre></div> </div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="docker"><p><br/></p>
-<p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Install <em>nvidia-docker-plugin</em> following the <a class="reference external" href="https://github.com/NVIDIA/nvidia-docker/wiki/Installation">installation instructions</a>. <em>nvidia-docker-plugin</em> is required to enable the usage of GPUs from the docker containers.</p>
-<p><strong>Step 4</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python:gpu <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        gpu                 493b2683c269        <span class="m">3</span> weeks ago         <span class="m">4</span>.77 GB
-</pre></div>
-</div>
-<p><strong>Step 5</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Install the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and numpy.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-numpy python-pip
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python GPU Installation Instructions --><!-- START - MacOS Python CPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on OSX Sierra and El Capitan.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install virtualenv for macOS.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install virtualenv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.0</pre></div> </div>
-<p><strong>Step 5</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 6</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==0.12.0</pre></div> </div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p><strong>Prerequisites</strong></p>
-<p>If not already installed, <a class="reference external" href="https://developer.apple.com/xcode/">download and install Xcode</a> (or <a class="reference external" href="https://itunes.apple.com/us/app/xcode/id497799835">insall it from the App Store</a>) for macOS. <a class="reference external" href="https://en.wikipedia.org/wiki/Xcode">Xcode</a> is an integrated development environment for macOS containing a suite of software development tools like C/C++ compilers, BLAS library and more.</p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p>Make sure you have installed Xcode before proceeding further.</p>
-<p><br/></p>
-<p>All the instructions to build <em>MXNet</em> core shared library and <em>MXNet</em> Python bindings are compiled as one helper <em>bash</em> script. You can use <a class="reference external" href="https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh">this bash script</a> to build <em>MXNet</em> for Python, from source, on macOS.</p>
-<p><strong>Step 1</strong> Download the bash script for building MXNet from source.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ curl -O https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Run the script to get latest MXNet source and build.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Make the script executable</span>
-$ chmod <span class="m">744</span> install-mxnet-osx-python.sh
-
-<span class="c1"># Run the script. It takes around 5 mins.</span>
-$ bash install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- End of source build --></div>
-</div>
-</div><!-- END - Mac OS Python CPU Installation Instructions --><!-- START - Mac OS Python GPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="gpu"><p>More details and verified installation instructions for macOS, with GPUs, coming soon.</p>
-<p><em>MXNet</em> is expected to be compatible on macOS with NVIDIA GPUs. Please install CUDA 8.0 and cuDNN 5.0, prior to installing GPU version of <em>MXNet</em>.</p>
-</div>
-</div>
-</div><!-- END - Mac OS Python GPU Installation Instructions --><!-- START - Cloud Python Installation Instructions --><div class="cloud"><p>AWS Marketplace distributes AMIs (Amazon Machine Image) with MXNet pre-installed. You can launch an Amazon EC2 instance with one of the below AMIs:</p>
-<ol class="simple">
-<li>Deep Learning AMI (Amazon Machine Image) for <a class="reference external" href="https://aws.amazon.com/marketplace/pp/B06VSPXKDX">Ubuntu</a></li>
-<li>Deep Learning AMI for <a class="reference external" href="https://aws.amazon.com/marketplace/pp/B01M0AXXQB">Amazon Linux</a></li>
-</ol>
-<p>You could also run distributed deeplearning with <em>MXNet</em> on AWS using <a class="reference external" href="https://github.com/awslabs/deeplearning-cfn/blob/master/README.md">Cloudformation Template</a>.</p>
-</div><!-- END - Cloud Python Installation Instructions --><!-- START - MacOS R CPU Installation Instructions --><div class="macos">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><div class="gpu"><p>Will be available soon.</p>
-</div></div>
-</div>
-<!-- END - MacOS R CPU Installation Instructions --><div class="linux">
-  <div class="r">
-    <div class="cpu">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 5 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div></div>
-</div><!-- START - Windows R CPU Installation Instructions --><div class="windows">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><!-- END - Windows R CPU Installation Instructions --><div class="gpu"><p>The GPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>Alternatively, You can also follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to build MXNet from source.</p>
-</div>
-</div>
-</div><!-- END - Windows R GPU Installation Instructions --><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="ubuntu_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="osx_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python scala julia perl">
-    <div class="gpu"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>MXNet supports the Debian based Raspbian ARM based operating system so you can run MXNet on Raspberry Pi Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Raspberry Pi and install the Python bindings for the library.</p>
-<p>The complete MXNet library and its requirements can take almost 200MB of RAM, and loading large models with the library can take over 1GB of RAM. Because of this, we recommend running MXNet on the Raspberry Pi 3 or an equivalent device that has more than 1 GB of RAM and a Secure Digital (SD) card that has at least 4 GB of free memory.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>On Raspbian versions Wheezy and later, you need the following dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libblas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations. This is optional if you want to save RAM and Disk Space)</li>
-<li>A C++ compiler that supports C++ 11. The C++ compiler compiles and builds MXNet source code. Supported compilers include the following:</li>
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">G++ (4.8 or later)</a></li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/dmlc/mxnet.git --recursive
-    <span class="nb">cd</span> mxnet
-</pre></div>
-</div>
-<p>If you aren&#8217;t processing images with MXNet on the Raspberry Pi, you can minimize the size of the compiled library by building MXNet without the Open Source Computer Vision (OpenCV) library with the following commands:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">export</span> <span class="nv">USE_OPENCV</span> <span class="o">=</span> <span class="m">0</span>
-    make
-</pre></div>
-</div>
-<p>Otherwise, you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make
-</pre></div>
-</div>
-<p>Executing either of these commands start the build process, which can take up to a couple hours, and creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p>If you are getting build errors in which the compiler is being killed, it is likely that the compiler is running out of memory (especially if you are on Raspberry Pi 1, 2 or Zero, which have less than 1GB of RAM), this can often be rectified by increasing the swapfile size on the Pi by editing the file /etc/dphys-swapfile and changing the line CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024, then running:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>  sudo /etc/init.d/dphys-swapfile stop
-  sudo /etc/init.d/dphys-swapfile start
-  free -m <span class="c1"># to verify the swapfile size has been increased</span>
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>You are now ready to run MXNet on your Raspberry Pi device. You can get started by following the tutorial on <a class="reference external" href="http://mxnet.io/tutorials/embedded/wine_detector.html">Real-time Object Detection with MXNet On The Raspberry Pi</a>.</p>
-<p><em>Note - Because the complete MXNet library takes up a significant amount of the Raspberry Pi&#8217;s limited RAM, when loading training data or large models into memory, you might have to turn off the GUI and terminate running processes to free RAM.</em></p>
-</div><div class="nvidia-jetson-tx2"><p>MXNet supports the Ubuntu Arch64 based operating system so you can run MXNet on NVIDIA Jetson Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Pascal based <a class="reference external" href="http://www.nvidia.com/object/embedded-systems-dev-kits-modules.html">NVIDIA Jetson TX2</a> and install the corresponding python language bindings.</p>
-<p>For the purposes of this install guide we will assume that CUDA is already installed on your Jetson device.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>You need the following additional dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libatlas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations)</li>
-<li>python pip (to load relevant python packages for our language bindings)</li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git build-essential libatlas-base-dev libopencv-dev graphviz python-pip
-    sudo pip install pip --upgrade
-    sudo pip install setuptools numpy --upgrade
-    sudo pip install graphviz jupyter
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/dmlc/mxnet.git --recursive
-    <span class="nb">cd</span> mxnet
-</pre></div>
-</div>
-<p>Edit the Makefile to install the MXNet with CUDA bindings to leverage the GPU on the Jetson:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    cp make/config.mk .
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA=1&quot;</span> &gt;&gt; config.mk    
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA_PATH=/usr/local/cuda&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDNN=1&quot;</span> &gt;&gt; config.mk
-</pre></div>
-</div>
-<p>Edit the Mshadow Makefile to ensure MXNet builds with Pascal&#8217;s hardware level low precision acceleration by editing mshadow/make/mshadow.mk and adding the following after line 122:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">MSHADOW_CFLAGS</span> <span class="o">+=</span> -DMSHADOW_USE_PASCAL<span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p>Now you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make -j <span class="k">$(</span>nproc<span class="k">)</span>
-</pre></div>
-</div>
-<p>Executing this command creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>Add the mxnet folder to the path:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> ..
-    <span class="nb">export</span> <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>                       
-    <span class="nb">echo</span> <span class="s2">&quot;export PYTHONPATH=</span><span class="nv">$MXNET_HOME</span><span class="s2">/python:</span><span class="nv">$PYTHONPATH</span><span class="s2">&quot;</span> &gt;&gt; ~/.bashrc
-    <span class="nb">source</span> ~/.bashrc
-</pre></div>
-</div>
-<p>You are now ready to run MXNet on your NVIDIA Jetson TX2 device.</p>
-</div>
-</div><p><br/></p>
-</div>
-<div class="section" id="validate-mxnet-installation">
-<span id="validate-mxnet-installation"></span><h1>Validate MXNet Installation<a class="headerlink" href="#validate-mxnet-installation" title="Permalink to this headline">¶</a></h1>
-<div class="linux macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a Docker container with <code class="docutils literal"><span class="pre">mxnet/python</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker run -it mxnet/python bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Validation for GPU machines --><div class="linux">
-  <div class="python">
-    <div class="gpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a NVIDIA Docker container with <code class="docutils literal"><span class="pre">mxnet/python:gpu</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ nvidia-docker run -it mxnet/python:gpu bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="macos">
-  <div class="python">
-    <div class="gpu"><p>More details and verified validation instructions for macOS, with GPUs, coming soon.</p>
-</div>
-</div>
-</div><!-- Linux Clean up -->
-<div class="linux">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and mxnet/python docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- MacOS Clean up -->
-<div class="macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and then the docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- Validation for cloud installation --><div class="cloud"><p>Login to the cloud instance you launched, with pre-installed <em>MXNet</em>, following the guide by corresponding cloud provider.</p>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-<!-- Example Python code for CPU --><div class="cpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">         [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-<p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><!-- Example Python code for CPU --><div class="gpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div></div><!-- Example R code for CPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="cpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.cpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Example R code for GPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="gpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.gpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-  <div class="cpu">
-  </div>
-    <div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">PATH</span></code>.</p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install python.</p>
-<p>Recommend install <code class="docutils literal"><span class="pre">Anaconda3</span></code> <a class="reference external" href="https://www.anaconda.com/download/">here</a></p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 8.0</p>
-<p>To install MXNet 0.12.1 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.1</pre></div> </div>
-<p>To install MXNet 0.12.0 use the following: </p><div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==0.12.0</pre></div> </div>
-</div>
-<div class="build-from-source">
-<br/>
-To build and install MXNet yourself, you need the following dependencies. Install the required dependencies:<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2015</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and Install <a class="reference external" href="https://cmake.org/">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/opencv-3.0.0.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code>.</li>
-<li>If you don&#8217;t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="http://sourceforge.net/projects/openblas/files/v0.2.14/">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories. Typically, you can find the directory in <code class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">files</span> <span class="pre">(x86)\OpenBLAS\</span></code>.</li>
-<li>Download and install <a class="reference external" href="https://developer.nvidia.com/cudnn">CuDNN</a>. To get access to the download link, register as an NVIDIA community user.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Download the MXNet source code from <a class="reference external" href="https://github.com/dmlc/mxnet">GitHub</a>.</li>
-<li>Use <a class="reference external" href="https://cmake.org/">CMake</a> to create a Visual Studio solution in <code class="docutils literal"><span class="pre">./build</span></code>.</li>
-<li>In Visual Studio, open the solution file,<code class="docutils literal"><span class="pre">.sln</span></code>, and compile it.
-These commands produce a library called <code class="docutils literal"><span class="pre">mxnet.dll</span></code> in the <code class="docutils literal"><span class="pre">./build/Release/</span></code> or <code class="docutils literal"><span class="pre">./build/Debug</span></code> folder.</li>
-</ol>
-<p><p> </p>
-
-Next, we install <code class="docutils literal"><span class="pre">graphviz</span></code> library that we use for visualizing network graphs you build on MXNet. We will also install <a class="reference external" href="http://jupyter.readthedocs.io/">Jupyter Notebook</a>  used for running MXNet tutorials and examples.</p>
-<ul class="simple">
-<li>Install <code class="docutils literal"><span class="pre">graphviz</span></code> by downloading MSI installer from <a class="reference external" href="http://www.graphviz.org/Download_windows.php">Graphviz Download Page</a>.
-<strong>Note</strong> Make sure to add graphviz executable path to PATH environment variable. Refer <a class="reference external" href="http://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft">here for more details</a></li>
-</ul>
-<p><p> </p>
-</p>
-</div>  </div>
-  </div>
-    <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-  </div>
-  </div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>Will be available soon.</p>
-</div>
-<div class="nvidia-jetson-tx2"><p>Will be available soon.</p>
-</div>
-</div></div>
-<div class="section" id="download-source-package">
-<span id="download-source-package"></span><h1>Download Source Package<a class="headerlink" href="#download-source-package" title="Permalink to this headline">¶</a></h1>
-</div>
-
-
-        </div>
-      </div>
-      
-      <div class="sphinxsidebar rightsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-  <h3><a href="../index.html">Table Of Contents</a></h3>
-  <ul>
-<li><a class="reference internal" href="#">Installing MXNet</a></li>
-<li><a class="reference internal" href="#validate-mxnet-installation">Validate MXNet Installation</a></li>
-<li><a class="reference internal" href="#download-source-package">Download Source Package</a></li>
-</ul>
-
-        </div>
-      </div>
-    </div><div class="footer">
-<div class="section-disclaimer">
-<div class="container">
-    <div>
-        <img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/apache_incubator_logo.png" height=60>
-        <p>
-            Apache MXNet is an effort undergoing incubation at The Apache Software Foundation (ASF), <strong>sponsored by the <i>Apache Incubator</i></strong>. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-        </p>
-        <p>
-            "Copyright © 2017, The Apache Software Foundation
-            Apache MXNet, MXNet, Apache, the Apache feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the Apache Software Foundation."
-        </p>
-    </div>
-</div>
-</div>
-</div> <!-- pagename != index -->
-    </div>
-
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
-    <script type="text/javascript" src="../_static/js/sidebar.js"></script>
-    <script type="text/javascript" src="../_static/js/search.js"></script>
-    <script type="text/javascript" src="../_static/js/navbar.js"></script>
-    <script type="text/javascript" src="../_static/js/clipboard.min.js"></script>
-    <script type="text/javascript" src="../_static/js/copycode.js"></script>
-    <script type="text/javascript" src="../_static/js/page.js"></script>
-    <script type="text/javascript">
-        $('body').ready(function () {
-            $('body').css('visibility', 'visible');
-        });
-    </script>
-  </body>
-</html>
diff --git a/docs/build_version_doc/artifacts/1.0.0.index.html b/docs/build_version_doc/artifacts/1.0.0.index.html
deleted file mode 100644
index b7c7a514e4e..00000000000
--- a/docs/build_version_doc/artifacts/1.0.0.index.html
+++ /dev/null
@@ -1,1302 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
---><!DOCTYPE html>
-
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    
-    
-
-    <title>Installing MXNet &mdash; mxnet  documentation</title>
-    
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-
-    
-    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
-    <link rel="stylesheet" href="../_static/mxnet.css" type="text/css">
-    
-    <script type="text/javascript">
-      var DOCUMENTATION_OPTIONS = {
-        URL_ROOT:    '../',
-        VERSION:     '',
-        COLLAPSE_INDEX: false,
-        FILE_SUFFIX: '.html',
-        HAS_SOURCE:  true,
-        SOURCELINK_SUFFIX: '.txt'
-      };
-    </script>
-
-    <script type="text/javascript" src="../_static/jquery-1.11.1.js"></script>
-    
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    
-    <script type="text/javascript" src="../_static/searchtools_custom.js"></script>
-    
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    
-    <script type="text/javascript" src="../_static/selectlang.js"></script>
-    
-
-    <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    <script type="text/javascript"> jQuery(function() { Search.loadIndex("/searchindex.js"); Search.init();}); </script>
-
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
-      Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
-      ga('create', 'UA-96378503-1', 'auto');
-      ga('send', 'pageview');
-
-    </script>
-
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/jquery.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/underscore.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/doctools.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
-    <!-- -->
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" /> 
-
-    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-icon.png">
-  </head>
-  <body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background.png">
-    <div class='content-block'><!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<div class="navbar navbar-fixed-top">
-  <div class="container" id="navContainer">
-    <div id="header-inner" class="innder">
-      <h1 id="logo-wrap">
-        <a href="../" id="logo"><img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet_logo.png"></a>
-      </h1>
-      <nav id="main-nav" class='nav-bar'>
-        <a class="main-nav-link" href="../install/index.html">Install</a>
-        <a class="main-nav-link" href="../tutorials/index.html">Tutorials</a>
-
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../gluon/index.html">About</a></li>
-            <li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
-          </ul>
-        </span>
-        
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../api/python/index.html">Python</a></li>
-            <li><a class="main-nav-link" href="../api/scala/index.html">Scala</a></li>
-            <li><a class="main-nav-link" href="../api/r/index.html">R</a></li>
-            <li><a class="main-nav-link" href="../api/julia/index.html">Julia</a></li>
-            <li><a class="main-nav-link" href="../api/c++/index.html">C++</a></li>
-            <li><a class="main-nav-link" href="../api/perl/index.html">Perl</a></li>
-          </ul>
-        </span>
-          
-         <span id="dropdown-menu-position-anchor-docs">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Docs <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-docs" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../faq/index.html">FAQ</a></li>
-            <li><a class="main-nav-link" href="../architecture/index.html">Architecture</a></li>
-            <li><a class="main-nav-link" href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-            <li><a class="main-nav-link" href="../model_zoo/index.html">Model Zoo</a></li>
-          </ul>
-        </span>
-
-
-        <a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a>
-
-        <span id="dropdown-menu-position-anchor-community">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Community <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-community" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../community/index.html">Community</a></li>
-            <li><a class="main-nav-link" href="../community/contribute.html">Contribute</a></li>
-            <li><a class="main-nav-link" href="../community/powered_by.html">Powered By</a></li>
-          </ul>
-        </span>
-        <a class="main-nav-link" href="http://discuss.mxnet.io">Discuss</a>
-      </nav>
-      <script> function getRootPath(){ return "../" } </script>
-      <div class="burgerIcon dropdown">
-          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
-          <ul id="burgerMenu" class="dropdown-menu">
-              <li><a href="../install/index.html">Install</a></li>
-              <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a></li>
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Community</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../community/index.html">Community</a></li>
-                  <li><a tabindex="-1"  href="../community/contribute.html">Contribute</a></li>
-                  <li><a tabindex="-1"  href="../community/powered_by.html">Powered By</a></li>
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">API</a>
-                <ul class="dropdown-menu">
-                  
-                    <li><a tabindex="-1" href="../api/python/index.html">Python</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/scala/index.html">Scala</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/r/index.html">R</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/julia/index.html">Julia</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/c++/index.html">C++</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/perl/index.html">Perl</a>
-                    </li>
-                  
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Docs</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../tutorials/index.html">Tutorials</a></li>
-                  <li><a tabindex="-1"  href="../faq/index.html">FAQ</a></li>
-                  <li><a tabindex="-1"  href="../architecture/index.html">Architecture</a></li>
-                  <li><a tabindex="-1"  href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-                  <li><a tabindex="-1"  href="../model_zoo/index.html">Model Zoo</a></li>
-                </ul>
-              </li>
-              <li><a href="../architecture/index.html">Architecture</a></li>
-		      <li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
-          </ul>
-      </div>
-      <div class="plusIcon dropdown">
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
-        <ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
-      </div>
-      <div id="search-input-wrap">
-          
-<form class="" role="search" action="../search.html" method="get" autocomplete="off">
-  <div class="form-group inner-addon left-addon">
-    <i class="glyphicon glyphicon-search"></i>
-    <input type="text" name="q" class="form-control" placeholder="Search">
-  </div>
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-  
-</form>
-          <div id="search-preview"></div>
-      </div>
-      <div id='searchIcon'>
-          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
-      </div>
-      <!-- <div id="lang-select-wrap"> -->
-      <!--   <label id="lang-select-label"> -->
-      <!--     <\!-- <i class="fa fa-globe"></i> -\-> -->
-      <!--     <span></span> -->
-      <!--   </label> -->
-      <!--   <select id="lang-select"> -->
-      <!--     <option value="en">Eng</option> -->
-      <!--     <option value="zh">中文</option> -->
-      <!--   </select> -->
-      <!-- </div> -->
-  <!--     <a id="mobile-nav-toggle">
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-      </a> -->
-    </div>
-  </div>
-</div>
-    
-
-    
-    <script type="text/javascript">
-        $('body').css('background', 'white');
-    </script>
-    <div class="container">
-      <div class="row">
-        <div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
-          <div class="sphinxsidebarwrapper">
-            
-  <ul>
-<li class="toctree-l1"><a class="reference internal" href="../api/python/index.html">Python Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/r/index.html">R Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/julia/index.html">Julia Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/c++/index.html">C++ Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/scala/index.html">Scala Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/perl/index.html">Perl Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../faq/index.html">HowTo Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../architecture/index.html">System Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
-</ul>
-
-          </div>
-        </div>
-        <div class="content">
-          <div class="page-tracker"></div>
-          
-  <div class="section" id="installing-mxnet">
-<span id="installing-mxnet"></span><h1>Installing MXNet<a class="headerlink" href="#installing-mxnet" title="Permalink to this headline">¶</a></h1>
-<p>Indicate your preferred configuration. Then, follow the customized commands to install <em>MXNet</em>.</p>
-<script type="text/javascript" src='../_static/js/options.js'></script><!-- START - OS Menu --><div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
-</div><!-- START - Language Menu --><div class="linux macos windows">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
-</div>
-</div><!-- No CPU GPU for other Devices -->
-<div class="linux macos windows cloud">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
-</div>
-</div><!-- other devices -->
-<div class="devices">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
-</div>
-</div><!-- Linux Python GPU Options --><div class="linux macos">
-<div class="python">
-<div class="cpu gpu">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
-</div>
-</div>
-</div>
-</div><!-- END - Main Menu --><!-- START - Linux Python CPU Installation Instructions --><div class="linux">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python gcc
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-mkl==1.0.0
-</pre></div>
-</div>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and numpy.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-numpy python-pip
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python CPU Installation Instructions --><!-- START - Linux Python GPU Installation Instructions --><div class="linux">
-<div class="python">
-<div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 5 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 8.0</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu80==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu80mkl==1.0.0
-</pre></div>
-</div>
-</div><div class="virtualenv"><p><br/></p>
-<p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with GPU support using CUDA 8.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu80==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="docker"><p><br/></p>
-<p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Install <em>nvidia-docker-plugin</em> following the <a class="reference external" href="https://github.com/NVIDIA/nvidia-docker/wiki/Installation">installation instructions</a>. <em>nvidia-docker-plugin</em> is required to enable the usage of GPUs from the docker containers.</p>
-<p><strong>Step 4</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python:gpu <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        gpu                 493b2683c269        <span class="m">3</span> weeks ago         <span class="m">4</span>.77 GB
-</pre></div>
-</div>
-<p><strong>Step 5</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Install the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and numpy.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-numpy python-pip
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python GPU Installation Instructions --><!-- START - MacOS Python CPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on OSX Sierra and El Capitan.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install virtualenv for macOS.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install virtualenv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 6</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.0.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p><strong>Prerequisites</strong></p>
-<p>If not already installed, <a class="reference external" href="https://developer.apple.com/xcode/">download and install Xcode</a> (or <a class="reference external" href="https://itunes.apple.com/us/app/xcode/id497799835">insall it from the App Store</a>) for macOS. <a class="reference external" href="https://en.wikipedia.org/wiki/Xcode">Xcode</a> is an integrated development environment for macOS containing a suite of software development tools like C/C++ compilers, BLAS library and more.</p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p>Make sure you have installed Xcode before proceeding further.</p>
-<p><br/></p>
-<p>All the instructions to build <em>MXNet</em> core shared library and <em>MXNet</em> Python bindings are compiled as one helper <em>bash</em> script. You can use <a class="reference external" href="https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh">this bash script</a> to build <em>MXNet</em> for Python, from source, on macOS.</p>
-<p><strong>Step 1</strong> Download the bash script for building MXNet from source.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ curl -O https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Run the script to get latest MXNet source and build.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Make the script executable</span>
-$ chmod <span class="m">744</span> install-mxnet-osx-python.sh
-
-<span class="c1"># Run the script. It takes around 5 mins.</span>
-$ bash install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- End of source build --></div>
-</div>
-</div><!-- END - Mac OS Python CPU Installation Instructions --><!-- START - Mac OS Python GPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="gpu"><p>More details and verified installation instructions for macOS, with GPUs, coming soon.</p>
-<p><em>MXNet</em> is expected to be compatible on macOS with NVIDIA GPUs. Please install CUDA 8.0 and cuDNN 5.0, prior to installing GPU version of <em>MXNet</em>.</p>
-</div>
-</div>
-</div><!-- END - Mac OS Python GPU Installation Instructions --><!-- START - Cloud Python Installation Instructions --><div class="cloud"><p>AWS Marketplace distributes AMIs (Amazon Machine Image) with MXNet pre-installed. You can launch an Amazon EC2 instance with one of the below AMIs:</p>
-<ol class="simple">
-<li>Deep Learning AMI (Amazon Machine Image) for <a class="reference external" href="https://aws.amazon.com/marketplace/pp/B06VSPXKDX">Ubuntu</a></li>
-<li>Deep Learning AMI for <a class="reference external" href="https://aws.amazon.com/marketplace/pp/B01M0AXXQB">Amazon Linux</a></li>
-</ol>
-<p>You could also run distributed deeplearning with <em>MXNet</em> on AWS using <a class="reference external" href="https://github.com/awslabs/deeplearning-cfn/blob/master/README.md">Cloudformation Template</a>.</p>
-</div><!-- END - Cloud Python Installation Instructions --><!-- START - MacOS R CPU Installation Instructions --><div class="macos">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><div class="gpu"><p>Will be available soon.</p>
-</div></div>
-</div>
-<!-- END - MacOS R CPU Installation Instructions --><div class="linux">
-  <div class="r">
-    <div class="cpu">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 5 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/dmlc/mxnet
-$ <span class="nb">cd</span> mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div></div>
-</div><!-- START - Windows R CPU Installation Instructions --><div class="windows">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><!-- END - Windows R CPU Installation Instructions --><div class="gpu"><p>The GPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>Alternatively, You can also follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to build MXNet from source.</p>
-</div>
-</div>
-</div><!-- END - Windows R GPU Installation Instructions --><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="ubuntu_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="osx_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python scala julia perl">
-    <div class="gpu"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>MXNet supports the Debian based Raspbian ARM based operating system so you can run MXNet on Raspberry Pi Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Raspberry Pi and install the Python bindings for the library.</p>
-<p>The complete MXNet library and its requirements can take almost 200MB of RAM, and loading large models with the library can take over 1GB of RAM. Because of this, we recommend running MXNet on the Raspberry Pi 3 or an equivalent device that has more than 1 GB of RAM and a Secure Digital (SD) card that has at least 4 GB of free memory.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>On Raspbian versions Wheezy and later, you need the following dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libblas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations. This is optional if you want to save RAM and Disk Space)</li>
-<li>A C++ compiler that supports C++ 11. The C++ compiler compiles and builds MXNet source code. Supported compilers include the following:</li>
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">G++ (4.8 or later)</a></li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/dmlc/mxnet.git --recursive
-    <span class="nb">cd</span> mxnet
-</pre></div>
-</div>
-<p>If you aren&#8217;t processing images with MXNet on the Raspberry Pi, you can minimize the size of the compiled library by building MXNet without the Open Source Computer Vision (OpenCV) library with the following commands:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">export</span> <span class="nv">USE_OPENCV</span> <span class="o">=</span> <span class="m">0</span>
-    make
-</pre></div>
-</div>
-<p>Otherwise, you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make
-</pre></div>
-</div>
-<p>Executing either of these commands start the build process, which can take up to a couple hours, and creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p>If you are getting build errors in which the compiler is being killed, it is likely that the compiler is running out of memory (especially if you are on Raspberry Pi 1, 2 or Zero, which have less than 1GB of RAM), this can often be rectified by increasing the swapfile size on the Pi by editing the file /etc/dphys-swapfile and changing the line CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024, then running:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>  sudo /etc/init.d/dphys-swapfile stop
-  sudo /etc/init.d/dphys-swapfile start
-  free -m <span class="c1"># to verify the swapfile size has been increased</span>
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>You are now ready to run MXNet on your Raspberry Pi device. You can get started by following the tutorial on <a class="reference external" href="http://mxnet.io/tutorials/embedded/wine_detector.html">Real-time Object Detection with MXNet On The Raspberry Pi</a>.</p>
-<p><em>Note - Because the complete MXNet library takes up a significant amount of the Raspberry Pi&#8217;s limited RAM, when loading training data or large models into memory, you might have to turn off the GUI and terminate running processes to free RAM.</em></p>
-</div><div class="nvidia-jetson-tx2"><p>MXNet supports the Ubuntu Arch64 based operating system so you can run MXNet on NVIDIA Jetson Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Pascal based <a class="reference external" href="http://www.nvidia.com/object/embedded-systems-dev-kits-modules.html">NVIDIA Jetson TX2</a> and install the corresponding python language bindings.</p>
-<p>For the purposes of this install guide we will assume that CUDA is already installed on your Jetson device.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>You need the following additional dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libatlas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations)</li>
-<li>python pip (to load relevant python packages for our language bindings)</li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git build-essential libatlas-base-dev libopencv-dev graphviz python-pip
-    sudo pip install pip --upgrade
-    sudo pip install setuptools numpy --upgrade
-    sudo pip install graphviz jupyter
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/dmlc/mxnet.git --recursive
-    <span class="nb">cd</span> mxnet
-</pre></div>
-</div>
-<p>Edit the Makefile to install the MXNet with CUDA bindings to leverage the GPU on the Jetson:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    cp make/config.mk .
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA=1&quot;</span> &gt;&gt; config.mk    
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA_PATH=/usr/local/cuda&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDNN=1&quot;</span> &gt;&gt; config.mk
-</pre></div>
-</div>
-<p>Edit the Mshadow Makefile to ensure MXNet builds with Pascal&#8217;s hardware level low precision acceleration by editing mshadow/make/mshadow.mk and adding the following after line 122:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">MSHADOW_CFLAGS</span> <span class="o">+=</span> -DMSHADOW_USE_PASCAL<span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p>Now you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make -j <span class="k">$(</span>nproc<span class="k">)</span>
-</pre></div>
-</div>
-<p>Executing this command creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>Add the mxnet folder to the path:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> ..
-    <span class="nb">export</span> <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>                       
-    <span class="nb">echo</span> <span class="s2">&quot;export PYTHONPATH=</span><span class="nv">$MXNET_HOME</span><span class="s2">/python:</span><span class="nv">$PYTHONPATH</span><span class="s2">&quot;</span> &gt;&gt; ~/.bashrc
-    <span class="nb">source</span> ~/.bashrc
-</pre></div>
-</div>
-<p>You are now ready to run MXNet on your NVIDIA Jetson TX2 device.</p>
-</div>
-</div><p><br/></p>
-</div>
-<div class="section" id="validate-mxnet-installation">
-<span id="validate-mxnet-installation"></span><h1>Validate MXNet Installation<a class="headerlink" href="#validate-mxnet-installation" title="Permalink to this headline">¶</a></h1>
-<div class="linux macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a Docker container with <code class="docutils literal"><span class="pre">mxnet/python</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker run -it mxnet/python bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Validation for GPU machines --><div class="linux">
-  <div class="python">
-    <div class="gpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a NVIDIA Docker container with <code class="docutils literal"><span class="pre">mxnet/python:gpu</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ nvidia-docker run -it mxnet/python:gpu bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="macos">
-  <div class="python">
-    <div class="gpu"><p>More details and verified validation instructions for macOS, with GPUs, coming soon.</p>
-</div>
-</div>
-</div><!-- Linux Clean up -->
-<div class="linux">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and mxnet/python docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- MacOS Clean up -->
-<div class="macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and then the docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- Validation for cloud installation --><div class="cloud"><p>Login to the cloud instance you launched, with pre-installed <em>MXNet</em>, following the guide by corresponding cloud provider.</p>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-<!-- Example Python code for CPU --><div class="cpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">         [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-<p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><!-- Example Python code for CPU --><div class="gpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div></div><!-- Example R code for CPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="cpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.cpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Example R code for GPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="gpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.gpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-  <div class="cpu">
-  </div>
-    <div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 8.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">PATH</span></code>.</p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install python.</p>
-<p>Recommend install <code class="docutils literal"><span class="pre">Anaconda3</span></code> <a class="reference external" href="https://www.anaconda.com/download/">here</a></p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 8.0</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu80==1.0.0
-</pre></div>
-</div>
-</div>
-<div class="build-from-source">
-<br/>
-To build and install MXNet yourself, you need the following dependencies. Install the required dependencies:<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2015</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and Install <a class="reference external" href="https://cmake.org/">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/opencv-3.0.0.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code>.</li>
-<li>If you don&#8217;t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="http://sourceforge.net/projects/openblas/files/v0.2.14/">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories. Typically, you can find the directory in <code class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">files</span> <span class="pre">(x86)\OpenBLAS\</span></code>.</li>
-<li>Download and install <a class="reference external" href="https://developer.nvidia.com/cudnn">CuDNN</a>. To get access to the download link, register as an NVIDIA community user.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Download the MXNet source code from <a class="reference external" href="https://github.com/dmlc/mxnet">GitHub</a>.</li>
-<li>Use <a class="reference external" href="https://cmake.org/">CMake</a> to create a Visual Studio solution in <code class="docutils literal"><span class="pre">./build</span></code>.</li>
-<li>In Visual Studio, open the solution file,<code class="docutils literal"><span class="pre">.sln</span></code>, and compile it.
-These commands produce a library called <code class="docutils literal"><span class="pre">mxnet.dll</span></code> in the <code class="docutils literal"><span class="pre">./build/Release/</span></code> or <code class="docutils literal"><span class="pre">./build/Debug</span></code> folder.</li>
-</ol>
-<p><p> </p>
-
-Next, we install <code class="docutils literal"><span class="pre">graphviz</span></code> library that we use for visualizing network graphs you build on MXNet. We will also install <a class="reference external" href="http://jupyter.readthedocs.io/">Jupyter Notebook</a>  used for running MXNet tutorials and examples.</p>
-<ul class="simple">
-<li>Install <code class="docutils literal"><span class="pre">graphviz</span></code> by downloading MSI installer from <a class="reference external" href="http://www.graphviz.org/Download_windows.php">Graphviz Download Page</a>.
-<strong>Note</strong> Make sure to add graphviz executable path to PATH environment variable. Refer <a class="reference external" href="http://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft">here for more details</a></li>
-</ul>
-<p><p> </p>
-</p>
-</div>  </div>
-  </div>
-    <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-  </div>
-  </div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>Will be available soon.</p>
-</div>
-<div class="nvidia-jetson-tx2"><p>Will be available soon.</p>
-</div>
-</div></div>
-<div class="section" id="download-source-package">
-<span id="download-source-package"></span><h1>Download Source Package<a class="headerlink" href="#download-source-package" title="Permalink to this headline">¶</a></h1>
-</div>
-
-
-        </div>
-      </div>
-      
-      <div class="sphinxsidebar rightsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-  <h3><a href="../index.html">Table Of Contents</a></h3>
-  <ul>
-<li><a class="reference internal" href="#">Installing MXNet</a></li>
-<li><a class="reference internal" href="#validate-mxnet-installation">Validate MXNet Installation</a></li>
-<li><a class="reference internal" href="#download-source-package">Download Source Package</a></li>
-</ul>
-
-        </div>
-      </div>
-    </div><!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-
-<div class="footer">
-<div class="section-disclaimer">
-<div class="container">
-    <div>
-        <img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/apache_incubator_logo.png" height=60>
-        <p>
-            Apache MXNet is an effort undergoing incubation at The Apache Software Foundation (ASF), <strong>sponsored by the <i>Apache Incubator</i></strong>. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-        </p>
-        <p>
-            "Copyright © 2017, The Apache Software Foundation
-            Apache MXNet, MXNet, Apache, the Apache feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the Apache Software Foundation."
-        </p>
-    </div>
-</div>
-</div>
-</div> <!-- pagename != index -->
-    </div>
-
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
-    <script type="text/javascript" src="../_static/js/sidebar.js"></script>
-    <script type="text/javascript" src="../_static/js/search.js"></script>
-    <script type="text/javascript" src="../_static/js/navbar.js"></script>
-    <script type="text/javascript" src="../_static/js/clipboard.min.js"></script>
-    <script type="text/javascript" src="../_static/js/copycode.js"></script>
-    <script type="text/javascript" src="../_static/js/page.js"></script>
-    <script type="text/javascript">
-        $('body').ready(function () {
-            $('body').css('visibility', 'visible');
-        });
-    </script>
-  </body>
-</html>
diff --git a/docs/build_version_doc/artifacts/1.1.0.index.html b/docs/build_version_doc/artifacts/1.1.0.index.html
deleted file mode 100644
index 2de028e3f75..00000000000
--- a/docs/build_version_doc/artifacts/1.1.0.index.html
+++ /dev/null
@@ -1,1338 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    
-    
-
-    <title>Installing MXNet &mdash; mxnet  documentation</title>
-    
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-
-    
-    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
-    <link rel="stylesheet" href="../_static/mxnet.css" type="text/css">
-    
-    <script type="text/javascript">
-      var DOCUMENTATION_OPTIONS = {
-        URL_ROOT:    '../',
-        VERSION:     '',
-        COLLAPSE_INDEX: false,
-        FILE_SUFFIX: '.html',
-        HAS_SOURCE:  true,
-        SOURCELINK_SUFFIX: '.txt'
-      };
-    </script>
-
-    <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
-    
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    
-    <script type="text/javascript" src="../_static/searchtools_custom.js"></script>
-    
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    
-    <script type="text/javascript" src="../_static/selectlang.js"></script>
-    
-
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    <script type="text/javascript"> jQuery(function() { Search.loadIndex("/searchindex.js"); Search.init();}); </script>
-
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
-      Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
-      ga('create', 'UA-96378503-1', 'auto');
-      ga('send', 'pageview');
-
-    </script>
-
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/jquery.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/underscore.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/doctools.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
-    <!-- -->
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" /> 
-
-    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-icon.png">
-  </head>
-  <body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background-compressed.jpeg">
-    <div class='content-block'><div class="navbar navbar-fixed-top">
-  <div class="container" id="navContainer">
-    <div id="header-inner" class="innder">
-      <h1 id="logo-wrap">
-        <a href="../" id="logo"><img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet_logo.png"></a>
-      </h1>
-      <nav id="main-nav" class='nav-bar'>
-        <a class="main-nav-link" href="../install/index.html">Install</a>
-
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../gluon/index.html">About</a></li>
-            <li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
-          </ul>
-        </span>
-        
-     <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../api/python/index.html">Python</a></li>
-            <li><a class="main-nav-link" href="../api/scala/index.html">Scala</a></li>
-            <li><a class="main-nav-link" href="../api/r/index.html">R</a></li>
-            <li><a class="main-nav-link" href="../api/julia/index.html">Julia</a></li>
-            <li><a class="main-nav-link" href="../api/c++/index.html">C++</a></li>
-            <li><a class="main-nav-link" href="../api/perl/index.html">Perl</a></li>
-          </ul>
-        </span>
-
-         <span id="dropdown-menu-position-anchor-docs">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Docs <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-docs" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a>
-            <li><a class="main-nav-link" href="../faq/index.html">FAQ</a></li>
-            <li><a class="main-nav-link" href="../architecture/index.html">Architecture</a></li>
-            <li><a class="main-nav-link" href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-            <li><a class="main-nav-link" href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-          </ul>
-        </span>
-
-
-        <a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a>
-
-        <span id="dropdown-menu-position-anchor-community">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Community <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-community" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../community/index.html">Community</a></li>
-            <li><a class="main-nav-link" href="../community/contribute.html">Contribute</a></li>
-            <li><a class="main-nav-link" href="../community/powered_by.html">Powered By</a></li>
-            <li><a class="main-nav-link" href="http://discuss.mxnet.io">Discuss</a></li>
-          </ul>
-        </span>
-      </nav>
-      <script> function getRootPath(){ return "../" } </script>
-      <div class="burgerIcon dropdown">
-          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
-          <ul id="burgerMenu" class="dropdown-menu">
-              <li><a href="../install/index.html">Install</a></li>
-              <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a></li>
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Community</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../community/index.html">Community</a></li>
-                  <li><a tabindex="-1"  href="../community/contribute.html">Contribute</a></li>
-                  <li><a tabindex="-1"  href="../community/powered_by.html">Powered By</a></li>
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">API</a>
-                <ul class="dropdown-menu">
-                  
-                    <li><a tabindex="-1" href="../api/python/index.html">Python</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/scala/index.html">Scala</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/r/index.html">R</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/julia/index.html">Julia</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/c++/index.html">C++</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/perl/index.html">Perl</a>
-                    </li>
-                  
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Docs</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../tutorials/index.html">Tutorials</a></li>
-                  <li><a tabindex="-1"  href="../faq/index.html">FAQ</a></li>
-                  <li><a tabindex="-1"  href="../architecture/index.html">Architecture</a></li>
-                  <li><a tabindex="-1"  href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-                  <li><a tabindex="-1"  href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-                </ul>
-              </li>
-              <li><a href="../architecture/index.html">Architecture</a></li>
-		      <li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
-          </ul>
-      </div>
-      <div class="plusIcon dropdown">
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
-        <ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
-      </div>
-      <div id="search-input-wrap">
-          
-<form class="" role="search" action="../search.html" method="get" autocomplete="off">
-  <div class="form-group inner-addon left-addon">
-    <i class="glyphicon glyphicon-search"></i>
-    <input type="text" name="q" class="form-control" placeholder="Search">
-  </div>
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-  
-</form>
-          <div id="search-preview"></div>
-      </div>
-      <div id='searchIcon'>
-          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
-      </div>
-      <!-- <div id="lang-select-wrap"> -->
-      <!--   <label id="lang-select-label"> -->
-      <!--     <\!-- <i class="fa fa-globe"></i> -\-> -->
-      <!--     <span></span> -->
-      <!--   </label> -->
-      <!--   <select id="lang-select"> -->
-      <!--     <option value="en">Eng</option> -->
-      <!--     <option value="zh">中文</option> -->
-      <!--   </select> -->
-      <!-- </div> -->
-  <!--     <a id="mobile-nav-toggle">
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-      </a> -->
-    </div>
-  </div>
-</div>
-    
-    
-    <script type="text/javascript">
-        $('body').css('background', 'white');
-    </script>
-    <div class="container">
-      <div class="row">
-        <div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
-          <div class="sphinxsidebarwrapper">
-            
-  <ul>
-<li class="toctree-l1"><a class="reference internal" href="../api/python/index.html">Python Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/r/index.html">R Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/julia/index.html">Julia Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/c++/index.html">C++ Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/scala/index.html">Scala Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/perl/index.html">Perl Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../faq/index.html">HowTo Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../architecture/index.html">System Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
-</ul>
-
-          </div>
-        </div>
-        <div class="content">
-          <div class="page-tracker"></div>
-          
-  <div class="section" id="installing-mxnet">
-<span id="installing-mxnet"></span><h1>Installing MXNet<a class="headerlink" href="#installing-mxnet" title="Permalink to this headline">¶</a></h1>
-<p>Indicate your preferred configuration. Then, follow the customized commands to install <em>MXNet</em>.</p>
-<script type="text/javascript" src='../_static/js/options.js'></script><!-- START - OS Menu --><div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
-</div><!-- START - Language Menu --><div class="linux macos windows">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
-</div>
-</div><!-- No CPU GPU for other Devices -->
-<div class="linux macos windows cloud">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
-</div>
-</div><!-- other devices -->
-<div class="devices">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
-</div>
-</div><!-- Linux Python GPU Options --><div class="linux macos windows">
-<div class="python">
-<div class="cpu gpu">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
-</div>
-</div>
-</div>
-</div><!-- END - Main Menu --><!-- START - Linux Python CPU Installation Instructions --><div class="linux">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python gcc
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-mkl==1.1.0
-</pre></div>
-</div>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python CPU Installation Instructions --><!-- START - Linux Python GPU Installation Instructions --><div class="linux">
-<div class="python">
-<div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90mkl==1.1.0
-</pre></div>
-</div>
-</div><div class="virtualenv"><p><br/></p>
-<p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu90==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="docker"><p><br/></p>
-<p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Install <em>nvidia-docker-plugin</em> following the <a class="reference external" href="https://github.com/NVIDIA/nvidia-docker/wiki/Installation">installation instructions</a>. <em>nvidia-docker-plugin</em> is required to enable the usage of GPUs from the docker containers.</p>
-<p><strong>Step 4</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python:gpu <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        gpu                 493b2683c269        <span class="m">3</span> weeks ago         <span class="m">4</span>.77 GB
-</pre></div>
-</div>
-<p><strong>Step 5</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Install the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy)..</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python GPU Installation Instructions --><!-- START - MacOS Python CPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on OSX Sierra and El Capitan.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install virtualenv for macOS.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install virtualenv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 6</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.1.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p><strong>Prerequisites</strong></p>
-<p>If not already installed, <a class="reference external" href="https://developer.apple.com/xcode/">download and install Xcode</a> (or <a class="reference external" href="https://itunes.apple.com/us/app/xcode/id497799835">insall it from the App Store</a>) for macOS. <a class="reference external" href="https://en.wikipedia.org/wiki/Xcode">Xcode</a> is an integrated development environment for macOS containing a suite of software development tools like C/C++ compilers, BLAS library and more.</p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p>Make sure you have installed Xcode before proceeding further.</p>
-<p><br/></p>
-<p>All the instructions to build <em>MXNet</em> core shared library and <em>MXNet</em> Python bindings are compiled as one helper <em>bash</em> script. You can use <a class="reference external" href="https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh">this bash script</a> to build <em>MXNet</em> for Python, from source, on macOS.</p>
-<p><strong>Step 1</strong> Download the bash script for building MXNet from source.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ curl -O https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Run the script to get latest MXNet source and build.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Make the script executable</span>
-$ chmod <span class="m">744</span> install-mxnet-osx-python.sh
-
-<span class="c1"># Run the script. It takes around 5 mins.</span>
-$ bash install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- End of source build --></div>
-</div>
-</div><!-- END - Mac OS Python CPU Installation Instructions --><!-- START - Mac OS Python GPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="gpu"><div class="pip virtualenv docker">
-</br><p>Try the <strong>Build from Source</strong> option for now.</p>
-</div><div class="build-from-source"><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python pkg-config graphviz
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install optional components - OpenCV</p>
-<p>If you want to use OpenCV you should install it first, then build MXNet with the <code class="docutils literal"><span class="pre">USE_OPENCV=1</span></code> option in the later steps.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>brew tap homebrew/science
-brew install opencv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install CUDA and cuDNN</p>
-<p>The following instructions are for CUDA 9.1 and cuDNN 7 for macOS 10.12+ and a CUDA-capable GPU. They summarize confirmed successful builds in <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/9217">#9217</a>.
-Alternatively, you may follow the <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">CUDA installation instructions for macOS</a>.</p>
-<ol class="simple">
-<li><a class="reference external" href="https://developer.apple.com/download/more/">Download Xcode 8.3.3 from Apple</a>. This is the version <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">NVIDIA specifies in its instructions for macOS</a>. Unzip and rename to <code class="docutils literal"><span class="pre">Xcode8.3.3.app</span></code>.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcode-select</span> <span class="pre">-s</span> <span class="pre">/Applications/Xcode8.3.3.app</span></code> or to wherever you have placed Xcode.</li>
-<li>Run <code class="docutils literal"><span class="pre">xcode-select</span> <span class="pre">--install</span></code> to install all command line tools, compilers, etc.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcodebuild</span> <span class="pre">-license</span> <span class="pre">accept</span></code> to accept Xcode&#8217;s licensing terms.</li>
-<li>Install CUDA for macOS. Specific steps are provided in NVIDIA&#8217;s <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#installation">CUDA installation instructions</a>.</li>
-<li><a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#download-mac">Download</a> and <a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installmac">install</a> cuDNN for macOS. You will need to <a class="reference external" href="https://developer.nvidia.com/accelerated-computing-developer">create a free developer account</a> with NVIDIA prior to getting the download link.</li>
-</ol>
-<p><strong>Step 4</strong>  Build MXNet</p>
-<ol>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">git</span> <span class="pre">clone</span> <span class="pre">--recursive</span> <span class="pre">https://github.com/apache/incubator-mxnet.git</span> <span class="pre">mxnet</span></code> to get the latest version.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">cd</span> <span class="pre">mxnet</span></code>.</p>
-</li>
-<li><p class="first">Edit the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> file to set the following parameters:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">USE_CUDA</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_CUDA_PATH</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">cuda</span>
-<span class="n">USE_CUDNN</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_OPENCV</span> <span class="o">=</span> <span class="mi">0</span>   <span class="c1"># set to 1 if you want to build with OpenCV</span>
-</pre></div>
-</div>
-</li>
-<li><p class="first">Copy the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> to <code class="docutils literal"><span class="pre">config.mk</span></code></p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">make</span></code>. If you previously attempted to compile you might want to do <code class="docutils literal"><span class="pre">make</span> <span class="pre">clean_all</span></code> first. You can also run <code class="docutils literal"><span class="pre">make</span> <span class="pre">-j</span></code> with the number of processors you have to compile with multithreading. There&#8217;ll be plenty of warnings, but there should be no errors.</p>
-</li>
-<li><p class="first">Once finished, you should have a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in <code class="docutils literal"><span class="pre">lib/</span></code>.</p>
-</li>
-<li><p class="first">Do <code class="docutils literal"><span class="pre">cd</span> <span class="pre">python</span></code>.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-e</span> <span class="pre">.</span></code> <strong>Note</strong>: the <code class="docutils literal"><span class="pre">.</span></code> is part of the command.</p>
-</li>
-</ol>
-</div>
-</div>
-</div>
-</div><!-- END - Mac OS Python GPU Installation Instructions --><!-- START - Cloud Python Installation Instructions --><div class="cloud"><p>AWS Marketplace distributes Deep Learning AMIs (Amazon Machine Image) with MXNet pre-installed. You can launch one of these Deep Learning AMIs by following instructions in the <a class="reference external" href="http://docs.aws.amazon.com/dlami/latest/devguide/what-is-dlami.html">AWS Deep Learning AMI Developer Guide</a>.</p>
-<p>You can also run distributed deep learning with <em>MXNet</em> on AWS using <a class="reference external" href="https://github.com/awslabs/deeplearning-cfn/blob/master/README.md">Cloudformation Template</a>.</p>
-</div><!-- END - Cloud Python Installation Instructions --><!-- START - MacOS R CPU Installation Instructions --><div class="macos">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><div class="gpu"><p>Will be available soon.</p>
-</div></div>
-</div>
-<!-- END - MacOS R CPU Installation Instructions --><div class="linux">
-  <div class="r">
-    <div class="cpu">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div></div>
-</div><!-- START - Windows R CPU Installation Instructions --><div class="windows">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><!-- END - Windows R CPU Installation Instructions --><div class="gpu"><p>The GPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>Alternatively, You can also follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to build MXNet from source.</p>
-</div>
-</div>
-</div><!-- END - Windows R GPU Installation Instructions --><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="ubuntu_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="osx_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-  <div class="cpu">
-  <div class="pip">
-<br/><p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.1.0
-</pre></div>
-</div>
-</div>
-</div>  <div class="gpu"><div class="pip">
-<br/><p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90==1.1.0
-</pre></div>
-</div>
-<p>Refer to <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/8671">#8671</a> for status on CUDA 9.1 support.</p>
-</div>
-<div class="build-from-source">
-<br/>
-To build and install MXNet yourself, you need the following dependencies. Install the required dependencies:<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2015</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and install <a class="reference external" href="https://cmake.org/">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/opencv-3.0.0.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code>.</li>
-<li>If you don&#8217;t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="http://sourceforge.net/projects/openblas/files/v0.2.14/">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories. Typically, you can find the directory in <code class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">files</span> <span class="pre">(x86)\OpenBLAS\</span></code>.</li>
-<li>Download and install <a class="reference external" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&amp;target_arch=x86_64">CUDA</a> and <a class="reference external" href="https://developer.nvidia.com/cudnn">cuDNN</a>. To get access to the download link, register as an NVIDIA community user.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Download the MXNet source code from <a class="reference external" href="https://github.com/apache/incubator-mxnet">GitHub</a>.</li>
-<li>Use <a class="reference external" href="https://cmake.org/">CMake</a> to create a Visual Studio solution in <code class="docutils literal"><span class="pre">./build</span></code>.</li>
-<li>In Visual Studio, open the solution file,<code class="docutils literal"><span class="pre">.sln</span></code>, and compile it.
-These commands produce a library called <code class="docutils literal"><span class="pre">mxnet.dll</span></code> in the <code class="docutils literal"><span class="pre">./build/Release/</span></code> or <code class="docutils literal"><span class="pre">./build/Debug</span></code> folder.</li>
-</ol>
-<p><p> </p>
-
-Next, we install the <code class="docutils literal"><span class="pre">graphviz</span></code> library that we use for visualizing network graphs that you build on MXNet. We will also install <a class="reference external" href="http://jupyter.readthedocs.io/">Jupyter Notebook</a> which is used for running MXNet tutorials and examples.</p>
-<ul class="simple">
-<li>Install the <code class="docutils literal"><span class="pre">graphviz</span></code> by downloading the installer from the <a class="reference external" href="https://graphviz.gitlab.io/_pages/Download/Download_windows.html">Graphviz Download Page</a>.
-<strong>Note</strong> Make sure to add the <code class="docutils literal"><span class="pre">graphviz</span></code> executable path to the PATH environment variable. Refer <a class="reference external" href="http://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft">here for more details</a></li>
-</ul>
-<p><p> </p>
-</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-    <div class="cpu">
-      <div class="virtualenv docker build-from-source"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>MXNet supports the Debian based Raspbian ARM based operating system so you can run MXNet on Raspberry Pi Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Raspberry Pi and install the Python bindings for the library.</p>
-<p>The complete MXNet library and its requirements can take almost 200MB of RAM, and loading large models with the library can take over 1GB of RAM. Because of this, we recommend running MXNet on the Raspberry Pi 3 or an equivalent device that has more than 1 GB of RAM and a Secure Digital (SD) card that has at least 4 GB of free memory.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>On Raspbian versions Wheezy and later, you need the following dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libblas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations. This is optional if you want to save RAM and Disk Space)</li>
-<li>A C++ compiler that supports C++ 11. The C++ compiler compiles and builds MXNet source code. Supported compilers include the following:</li>
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">G++ (4.8 or later)</a></li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>If you aren&#8217;t processing images with MXNet on the Raspberry Pi, you can minimize the size of the compiled library by building MXNet without the Open Source Computer Vision (OpenCV) library with the following commands:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">export</span> <span class="nv">USE_OPENCV</span> <span class="o">=</span> <span class="m">0</span>
-    make
-</pre></div>
-</div>
-<p>Otherwise, you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make
-</pre></div>
-</div>
-<p>Executing either of these commands start the build process, which can take up to a couple hours, and creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p>If you are getting build errors in which the compiler is being killed, it is likely that the compiler is running out of memory (especially if you are on Raspberry Pi 1, 2 or Zero, which have less than 1GB of RAM), this can often be rectified by increasing the swapfile size on the Pi by editing the file /etc/dphys-swapfile and changing the line CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024, then running:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>  sudo /etc/init.d/dphys-swapfile stop
-  sudo /etc/init.d/dphys-swapfile start
-  free -m <span class="c1"># to verify the swapfile size has been increased</span>
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>You are now ready to run MXNet on your Raspberry Pi device. You can get started by following the tutorial on <a class="reference external" href="http://mxnet.io/tutorials/embedded/wine_detector.html">Real-time Object Detection with MXNet On The Raspberry Pi</a>.</p>
-<p><em>Note - Because the complete MXNet library takes up a significant amount of the Raspberry Pi&#8217;s limited RAM, when loading training data or large models into memory, you might have to turn off the GUI and terminate running processes to free RAM.</em></p>
-</div><div class="nvidia-jetson-tx2"><p>MXNet supports the Ubuntu Arch64 based operating system so you can run MXNet on NVIDIA Jetson Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Pascal based <a class="reference external" href="http://www.nvidia.com/object/embedded-systems-dev-kits-modules.html">NVIDIA Jetson TX2</a> and install the corresponding python language bindings.</p>
-<p>For the purposes of this install guide we will assume that CUDA is already installed on your Jetson device.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>You need the following additional dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libatlas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations)</li>
-<li>python pip (to load relevant python packages for our language bindings)</li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git build-essential libatlas-base-dev libopencv-dev graphviz python-pip
-    sudo pip install pip --upgrade
-    sudo pip install setuptools numpy --upgrade
-    sudo pip install graphviz jupyter
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>Edit the Makefile to install the MXNet with CUDA bindings to leverage the GPU on the Jetson:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    cp make/config.mk .
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA=1&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA_PATH=/usr/local/cuda&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDNN=1&quot;</span> &gt;&gt; config.mk
-</pre></div>
-</div>
-<p>Edit the Mshadow Makefile to ensure MXNet builds with Pascal&#8217;s hardware level low precision acceleration by editing mshadow/make/mshadow.mk and adding the following after line 122:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">MSHADOW_CFLAGS</span> <span class="o">+=</span> -DMSHADOW_USE_PASCAL<span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p>Now you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make -j <span class="k">$(</span>nproc<span class="k">)</span>
-</pre></div>
-</div>
-<p>Executing this command creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>Add the mxnet folder to the path:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> ..
-    <span class="nb">export</span> <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>
-    <span class="nb">echo</span> <span class="s2">&quot;export PYTHONPATH=</span><span class="nv">$MXNET_HOME</span><span class="s2">/python:</span><span class="nv">$PYTHONPATH</span><span class="s2">&quot;</span> &gt;&gt; ~/.bashrc
-    <span class="nb">source</span> ~/.bashrc
-</pre></div>
-</div>
-<p>You are now ready to run MXNet on your NVIDIA Jetson TX2 device.</p>
-</div>
-</div><p><br/></p>
-<!-- This # tag restarts the page and allows reuse
- of the div classes for validation sections, etc --></div>
-<div class="section" id="validate-mxnet-installation">
-<span id="validate-mxnet-installation"></span><h1>Validate MXNet Installation<a class="headerlink" href="#validate-mxnet-installation" title="Permalink to this headline">¶</a></h1>
-<div class="linux macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a Docker container with <code class="docutils literal"><span class="pre">mxnet/python</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker run -it mxnet/python bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Validate Windows CPU pip install --><div class="windows">
-  <div class="python">
-    <div class="cpu">
-      <div class="pip"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div>
-</div><!-- Mac OS GPU installation validation --><div class="macos">
-  <div class="python">
-    <div class="gpu"><div class="pip virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Windows GPU installation validation --><div class="windows">
-  <div class="python">
-    <div class="gpu"><div class="virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="pip build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Validation for GPU machines --><div class="linux">
-  <div class="python">
-    <div class="gpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a NVIDIA Docker container with <code class="docutils literal"><span class="pre">mxnet/python:gpu</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ nvidia-docker run -it mxnet/python:gpu bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Linux Clean up -->
-<div class="linux">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and mxnet/python docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- MacOS Clean up -->
-<div class="macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and then the docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- Validation for cloud installation --><div class="cloud"><p>Login to the cloud instance you launched, with pre-installed <em>MXNet</em>, following the guide by corresponding cloud provider.</p>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-<!-- Example Python code for CPU --><div class="cpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">         [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-<p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><!-- Example Python code for CPU --><div class="gpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div></div><!-- Example R code for CPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="cpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.cpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Example R code for GPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="gpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.gpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><!-- Windows MXNet Installation validation -->
-<div class="windows">
-  <div class="python">
-    <div class="cpu"><div class="build-from-source virtualenv docker">
-<br/>
-Will be available soon.
-</div></div>
-</div><div class="scala julia perl">
-<div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div>
-<!-- End Windows Installation validation --><div class="devices">
-  <div class="raspberry-pi"><p>Will be available soon.</p>
-</div>
-<div class="nvidia-jetson-tx2"><p>Will be available soon.</p>
-</div>
-</div></div>
-<div class="section" id="download-source-package">
-<span id="download-source-package"></span><h1>Download Source Package<a class="headerlink" href="#download-source-package" title="Permalink to this headline">¶</a></h1>
-</div>
-
-
-        </div>
-      </div>
-      
-      <div class="sphinxsidebar rightsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-  <h3><a href="../index.html">Table Of Contents</a></h3>
-  <ul>
-<li><a class="reference internal" href="#">Installing MXNet</a></li>
-<li><a class="reference internal" href="#validate-mxnet-installation">Validate MXNet Installation</a></li>
-<li><a class="reference internal" href="#download-source-package">Download Source Package</a></li>
-</ul>
-
-        </div>
-      </div>
-    </div><div class="footer">
-<div class="section-disclaimer">
-<div class="container">
-    <div>
-        <img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/apache_incubator_logo.png" height=60>
-        <p>
-            Apache MXNet is an effort undergoing incubation at The Apache Software Foundation (ASF), <strong>sponsored by the <i>Apache Incubator</i></strong>. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-        </p>
-        <p>
-            "Copyright © 2017-2018, The Apache Software Foundation
-            Apache MXNet, MXNet, Apache, the Apache feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the Apache Software Foundation."
-        </p>
-    </div>
-</div>
-</div>
-</div> <!-- pagename != index -->
-    </div>
-
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
-    <script type="text/javascript" src="../_static/js/sidebar.js"></script>
-    <script type="text/javascript" src="../_static/js/search.js"></script>
-    <script type="text/javascript" src="../_static/js/navbar.js"></script>
-    <script type="text/javascript" src="../_static/js/clipboard.min.js"></script>
-    <script type="text/javascript" src="../_static/js/copycode.js"></script>
-    <script type="text/javascript" src="../_static/js/page.js"></script>
-    <script type="text/javascript">
-        $('body').ready(function () {
-            $('body').css('visibility', 'visible');
-        });
-    </script>
-  </body>
-</html>
diff --git a/docs/build_version_doc/artifacts/1.2.0.index.html b/docs/build_version_doc/artifacts/1.2.0.index.html
deleted file mode 100644
index 13792d7f1a4..00000000000
--- a/docs/build_version_doc/artifacts/1.2.0.index.html
+++ /dev/null
@@ -1,1338 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    
-    
-
-    <title>Installing MXNet &mdash; mxnet  documentation</title>
-    
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-
-    
-    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
-    <link rel="stylesheet" href="../_static/mxnet.css" type="text/css">
-    
-    <script type="text/javascript">
-      var DOCUMENTATION_OPTIONS = {
-        URL_ROOT:    '../',
-        VERSION:     '',
-        COLLAPSE_INDEX: false,
-        FILE_SUFFIX: '.html',
-        HAS_SOURCE:  true,
-        SOURCELINK_SUFFIX: '.txt'
-      };
-    </script>
-
-    <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
-    
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    
-    <script type="text/javascript" src="../_static/searchtools_custom.js"></script>
-    
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    
-    <script type="text/javascript" src="../_static/selectlang.js"></script>
-    
-
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    <script type="text/javascript"> jQuery(function() { Search.loadIndex("/searchindex.js"); Search.init();}); </script>
-
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
-      Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
-      ga('create', 'UA-96378503-1', 'auto');
-      ga('send', 'pageview');
-
-    </script>
-
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/jquery.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/underscore.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/doctools.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
-    <!-- -->
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" /> 
-
-    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-icon.png">
-  </head>
-  <body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background-compressed.jpeg">
-    <div class='content-block'><div class="navbar navbar-fixed-top">
-  <div class="container" id="navContainer">
-    <div id="header-inner" class="innder">
-      <h1 id="logo-wrap">
-        <a href="../" id="logo"><img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet_logo.png"></a>
-      </h1>
-      <nav id="main-nav" class='nav-bar'>
-        <a class="main-nav-link" href="../install/index.html">Install</a>
-
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../gluon/index.html">About</a></li>
-            <li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
-          </ul>
-        </span>
-        
-     <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../api/python/index.html">Python</a></li>
-            <li><a class="main-nav-link" href="../api/scala/index.html">Scala</a></li>
-            <li><a class="main-nav-link" href="../api/r/index.html">R</a></li>
-            <li><a class="main-nav-link" href="../api/julia/index.html">Julia</a></li>
-            <li><a class="main-nav-link" href="../api/c++/index.html">C++</a></li>
-            <li><a class="main-nav-link" href="../api/perl/index.html">Perl</a></li>
-          </ul>
-        </span>
-
-         <span id="dropdown-menu-position-anchor-docs">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Docs <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-docs" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a>
-            <li><a class="main-nav-link" href="../faq/index.html">FAQ</a></li>
-            <li><a class="main-nav-link" href="../architecture/index.html">Architecture</a></li>
-            <li><a class="main-nav-link" href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-            <li><a class="main-nav-link" href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-          </ul>
-        </span>
-
-
-        <a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a>
-
-        <span id="dropdown-menu-position-anchor-community">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Community <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-community" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../community/index.html">Community</a></li>
-            <li><a class="main-nav-link" href="../community/contribute.html">Contribute</a></li>
-            <li><a class="main-nav-link" href="../community/powered_by.html">Powered By</a></li>
-            <li><a class="main-nav-link" href="http://discuss.mxnet.io">Discuss</a></li>
-          </ul>
-        </span>
-      </nav>
-      <script> function getRootPath(){ return "../" } </script>
-      <div class="burgerIcon dropdown">
-          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
-          <ul id="burgerMenu" class="dropdown-menu">
-              <li><a href="../install/index.html">Install</a></li>
-              <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a></li>
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Community</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../community/index.html">Community</a></li>
-                  <li><a tabindex="-1"  href="../community/contribute.html">Contribute</a></li>
-                  <li><a tabindex="-1"  href="../community/powered_by.html">Powered By</a></li>
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">API</a>
-                <ul class="dropdown-menu">
-                  
-                    <li><a tabindex="-1" href="../api/python/index.html">Python</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/scala/index.html">Scala</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/r/index.html">R</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/julia/index.html">Julia</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/c++/index.html">C++</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/perl/index.html">Perl</a>
-                    </li>
-                  
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Docs</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../tutorials/index.html">Tutorials</a></li>
-                  <li><a tabindex="-1"  href="../faq/index.html">FAQ</a></li>
-                  <li><a tabindex="-1"  href="../architecture/index.html">Architecture</a></li>
-                  <li><a tabindex="-1"  href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-                  <li><a tabindex="-1"  href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-                </ul>
-              </li>
-              <li><a href="../architecture/index.html">Architecture</a></li>
-		      <li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
-          </ul>
-      </div>
-      <div class="plusIcon dropdown">
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
-        <ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
-      </div>
-      <div id="search-input-wrap">
-          
-<form class="" role="search" action="../search.html" method="get" autocomplete="off">
-  <div class="form-group inner-addon left-addon">
-    <i class="glyphicon glyphicon-search"></i>
-    <input type="text" name="q" class="form-control" placeholder="Search">
-  </div>
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-  
-</form>
-          <div id="search-preview"></div>
-      </div>
-      <div id='searchIcon'>
-          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
-      </div>
-      <!-- <div id="lang-select-wrap"> -->
-      <!--   <label id="lang-select-label"> -->
-      <!--     <\!-- <i class="fa fa-globe"></i> -\-> -->
-      <!--     <span></span> -->
-      <!--   </label> -->
-      <!--   <select id="lang-select"> -->
-      <!--     <option value="en">Eng</option> -->
-      <!--     <option value="zh">中文</option> -->
-      <!--   </select> -->
-      <!-- </div> -->
-  <!--     <a id="mobile-nav-toggle">
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-      </a> -->
-    </div>
-  </div>
-</div>
-    
-    
-    <script type="text/javascript">
-        $('body').css('background', 'white');
-    </script>
-    <div class="container">
-      <div class="row">
-        <div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
-          <div class="sphinxsidebarwrapper">
-            
-  <ul>
-<li class="toctree-l1"><a class="reference internal" href="../api/python/index.html">Python Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/r/index.html">R Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/julia/index.html">Julia Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/c++/index.html">C++ Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/scala/index.html">Scala Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/perl/index.html">Perl Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../faq/index.html">HowTo Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../architecture/index.html">System Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
-</ul>
-
-          </div>
-        </div>
-        <div class="content">
-          <div class="page-tracker"></div>
-          
-  <div class="section" id="installing-mxnet">
-<span id="installing-mxnet"></span><h1>Installing MXNet<a class="headerlink" href="#installing-mxnet" title="Permalink to this headline">¶</a></h1>
-<p>Indicate your preferred configuration. Then, follow the customized commands to install <em>MXNet</em>.</p>
-<script type="text/javascript" src='../_static/js/options.js'></script><!-- START - OS Menu --><div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
-</div><!-- START - Language Menu --><div class="linux macos windows">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
-</div>
-</div><!-- No CPU GPU for other Devices -->
-<div class="linux macos windows cloud">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
-</div>
-</div><!-- other devices -->
-<div class="devices">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
-</div>
-</div><!-- Linux Python GPU Options --><div class="linux macos windows">
-<div class="python">
-<div class="cpu gpu">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
-</div>
-</div>
-</div>
-</div><!-- END - Main Menu --><!-- START - Linux Python CPU Installation Instructions --><div class="linux">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python gcc
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-mkl==1.2.0
-</pre></div>
-</div>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python CPU Installation Instructions --><!-- START - Linux Python GPU Installation Instructions --><div class="linux">
-<div class="python">
-<div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90mkl==1.2.0
-</pre></div>
-</div>
-</div><div class="virtualenv"><p><br/></p>
-<p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu90==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="docker"><p><br/></p>
-<p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Install <em>nvidia-docker-plugin</em> following the <a class="reference external" href="https://github.com/NVIDIA/nvidia-docker/wiki/Installation">installation instructions</a>. <em>nvidia-docker-plugin</em> is required to enable the usage of GPUs from the docker containers.</p>
-<p><strong>Step 4</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python:gpu <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        gpu                 493b2683c269        <span class="m">3</span> weeks ago         <span class="m">4</span>.77 GB
-</pre></div>
-</div>
-<p><strong>Step 5</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Install the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy)..</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div></div>
-</div>
-</div>
-<!-- END - Linux Python GPU Installation Instructions --><!-- START - MacOS Python CPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="cpu"><p>The following installation instructions have been tested on OSX Sierra and El Capitan.</p>
-<div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install virtualenv for macOS.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install virtualenv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 6</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div><div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.2.0
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><div class="build-from-source">
-<br/><p><strong>Prerequisites</strong></p>
-<p>If not already installed, <a class="reference external" href="https://developer.apple.com/xcode/">download and install Xcode</a> (or <a class="reference external" href="https://itunes.apple.com/us/app/xcode/id497799835">insall it from the App Store</a>) for macOS. <a class="reference external" href="https://en.wikipedia.org/wiki/Xcode">Xcode</a> is an integrated development environment for macOS containing a suite of software development tools like C/C++ compilers, BLAS library and more.</p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p>Make sure you have installed Xcode before proceeding further.</p>
-<p><br/></p>
-<p>All the instructions to build <em>MXNet</em> core shared library and <em>MXNet</em> Python bindings are compiled as one helper <em>bash</em> script. You can use <a class="reference external" href="https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh">this bash script</a> to build <em>MXNet</em> for Python, from source, on macOS.</p>
-<p><strong>Step 1</strong> Download the bash script for building MXNet from source.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ curl -O https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Run the script to get latest MXNet source and build.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Make the script executable</span>
-$ chmod <span class="m">744</span> install-mxnet-osx-python.sh
-
-<span class="c1"># Run the script. It takes around 5 mins.</span>
-$ bash install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- End of source build --></div>
-</div>
-</div><!-- END - Mac OS Python CPU Installation Instructions --><!-- START - Mac OS Python GPU Installation Instructions --><div class="macos">
-  <div class="python">
-    <div class="gpu"><div class="pip virtualenv docker">
-</br><p>Try the <strong>Build from Source</strong> option for now.</p>
-</div><div class="build-from-source"><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python pkg-config graphviz
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install optional components - OpenCV</p>
-<p>If you want to use OpenCV you should install it first, then build MXNet with the <code class="docutils literal"><span class="pre">USE_OPENCV=1</span></code> option in the later steps.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>brew tap homebrew/science
-brew install opencv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install CUDA and cuDNN</p>
-<p>The following instructions are for CUDA 9.1 and cuDNN 7 for macOS 10.12+ and a CUDA-capable GPU. They summarize confirmed successful builds in <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/9217">#9217</a>.
-Alternatively, you may follow the <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">CUDA installation instructions for macOS</a>.</p>
-<ol class="simple">
-<li><a class="reference external" href="https://developer.apple.com/download/more/">Download Xcode 8.3.3 from Apple</a>. This is the version <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">NVIDIA specifies in its instructions for macOS</a>. Unzip and rename to <code class="docutils literal"><span class="pre">Xcode8.3.3.app</span></code>.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcode-select</span> <span class="pre">-s</span> <span class="pre">/Applications/Xcode8.3.3.app</span></code> or to wherever you have placed Xcode.</li>
-<li>Run <code class="docutils literal"><span class="pre">xcode-select</span> <span class="pre">--install</span></code> to install all command line tools, compilers, etc.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcodebuild</span> <span class="pre">-license</span> <span class="pre">accept</span></code> to accept Xcode&#8217;s licensing terms.</li>
-<li>Install CUDA for macOS. Specific steps are provided in NVIDIA&#8217;s <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#installation">CUDA installation instructions</a>.</li>
-<li><a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#download-mac">Download</a> and <a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installmac">install</a> cuDNN for macOS. You will need to <a class="reference external" href="https://developer.nvidia.com/accelerated-computing-developer">create a free developer account</a> with NVIDIA prior to getting the download link.</li>
-</ol>
-<p><strong>Step 4</strong>  Build MXNet</p>
-<ol>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">git</span> <span class="pre">clone</span> <span class="pre">--recursive</span> <span class="pre">https://github.com/apache/incubator-mxnet.git</span> <span class="pre">mxnet</span></code> to get the latest version.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">cd</span> <span class="pre">mxnet</span></code>.</p>
-</li>
-<li><p class="first">Edit the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> file to set the following parameters:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">USE_CUDA</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_CUDA_PATH</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">cuda</span>
-<span class="n">USE_CUDNN</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_OPENCV</span> <span class="o">=</span> <span class="mi">0</span>   <span class="c1"># set to 1 if you want to build with OpenCV</span>
-</pre></div>
-</div>
-</li>
-<li><p class="first">Copy the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> to <code class="docutils literal"><span class="pre">config.mk</span></code></p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">make</span></code>. If you previously attempted to compile you might want to do <code class="docutils literal"><span class="pre">make</span> <span class="pre">clean_all</span></code> first. You can also run <code class="docutils literal"><span class="pre">make</span> <span class="pre">-j</span></code> with the number of processors you have to compile with multithreading. There&#8217;ll be plenty of warnings, but there should be no errors.</p>
-</li>
-<li><p class="first">Once finished, you should have a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in <code class="docutils literal"><span class="pre">lib/</span></code>.</p>
-</li>
-<li><p class="first">Do <code class="docutils literal"><span class="pre">cd</span> <span class="pre">python</span></code>.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-e</span> <span class="pre">.</span></code> <strong>Note</strong>: the <code class="docutils literal"><span class="pre">.</span></code> is part of the command.</p>
-</li>
-</ol>
-</div>
-</div>
-</div>
-</div><!-- END - Mac OS Python GPU Installation Instructions --><!-- START - Cloud Python Installation Instructions --><div class="cloud"><p>AWS Marketplace distributes Deep Learning AMIs (Amazon Machine Image) with MXNet pre-installed. You can launch one of these Deep Learning AMIs by following instructions in the <a class="reference external" href="http://docs.aws.amazon.com/dlami/latest/devguide/what-is-dlami.html">AWS Deep Learning AMI Developer Guide</a>.</p>
-<p>You can also run distributed deep learning with <em>MXNet</em> on AWS using <a class="reference external" href="https://github.com/awslabs/deeplearning-cfn/blob/master/README.md">Cloudformation Template</a>.</p>
-</div><!-- END - Cloud Python Installation Instructions --><!-- START - MacOS R CPU Installation Instructions --><div class="macos">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><div class="gpu"><p>Will be available soon.</p>
-</div></div>
-</div>
-<!-- END - MacOS R CPU Installation Instructions --><div class="linux">
-  <div class="r">
-    <div class="cpu">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div></div>
-</div><!-- START - Windows R CPU Installation Instructions --><div class="windows">
-  <div class="r">
-    <div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div><!-- END - Windows R CPU Installation Instructions --><div class="gpu"><p>The GPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>Alternatively, You can also follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to build MXNet from source.</p>
-</div>
-</div>
-</div><!-- END - Windows R GPU Installation Instructions --><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="ubuntu_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="osx_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-  <div class="cpu">
-  <div class="pip">
-<br/><p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet==1.2.0
-</pre></div>
-</div>
-</div>
-</div>  <div class="gpu"><div class="pip">
-<br/><p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90==1.2.0
-</pre></div>
-</div>
-<p>Refer to <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/8671">#8671</a> for status on CUDA 9.1 support.</p>
-</div>
-<div class="build-from-source">
-<br/>
-To build and install MXNet yourself, you need the following dependencies. Install the required dependencies:<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2015</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and install <a class="reference external" href="https://cmake.org/">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/opencv-3.0.0.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code>.</li>
-<li>If you don&#8217;t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="http://sourceforge.net/projects/openblas/files/v0.2.14/">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories. Typically, you can find the directory in <code class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">files</span> <span class="pre">(x86)\OpenBLAS\</span></code>.</li>
-<li>Download and install <a class="reference external" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&amp;target_arch=x86_64">CUDA</a> and <a class="reference external" href="https://developer.nvidia.com/cudnn">cuDNN</a>. To get access to the download link, register as an NVIDIA community user.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Download the MXNet source code from <a class="reference external" href="https://github.com/apache/incubator-mxnet">GitHub</a>.</li>
-<li>Use <a class="reference external" href="https://cmake.org/">CMake</a> to create a Visual Studio solution in <code class="docutils literal"><span class="pre">./build</span></code>.</li>
-<li>In Visual Studio, open the solution file,<code class="docutils literal"><span class="pre">.sln</span></code>, and compile it.
-These commands produce a library called <code class="docutils literal"><span class="pre">mxnet.dll</span></code> in the <code class="docutils literal"><span class="pre">./build/Release/</span></code> or <code class="docutils literal"><span class="pre">./build/Debug</span></code> folder.</li>
-</ol>
-<p><p> </p>
-
-Next, we install the <code class="docutils literal"><span class="pre">graphviz</span></code> library that we use for visualizing network graphs that you build on MXNet. We will also install <a class="reference external" href="http://jupyter.readthedocs.io/">Jupyter Notebook</a> which is used for running MXNet tutorials and examples.</p>
-<ul class="simple">
-<li>Install the <code class="docutils literal"><span class="pre">graphviz</span></code> by downloading the installer from the <a class="reference external" href="https://graphviz.gitlab.io/_pages/Download/Download_windows.html">Graphviz Download Page</a>.
-<strong>Note</strong> Make sure to add the <code class="docutils literal"><span class="pre">graphviz</span></code> executable path to the PATH environment variable. Refer <a class="reference external" href="http://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft">here for more details</a></li>
-</ul>
-<p><p> </p>
-</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div><div class="windows">
-  <div class="python">
-    <div class="cpu">
-      <div class="virtualenv docker build-from-source"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div>
-</div>
-</div>
-</div><div class="devices">
-  <div class="raspberry-pi"><p>MXNet supports the Debian based Raspbian ARM based operating system so you can run MXNet on Raspberry Pi Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Raspberry Pi and install the Python bindings for the library.</p>
-<p>The complete MXNet library and its requirements can take almost 200MB of RAM, and loading large models with the library can take over 1GB of RAM. Because of this, we recommend running MXNet on the Raspberry Pi 3 or an equivalent device that has more than 1 GB of RAM and a Secure Digital (SD) card that has at least 4 GB of free memory.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>On Raspbian versions Wheezy and later, you need the following dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libblas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations. This is optional if you want to save RAM and Disk Space)</li>
-<li>A C++ compiler that supports C++ 11. The C++ compiler compiles and builds MXNet source code. Supported compilers include the following:</li>
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">G++ (4.8 or later)</a></li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>If you aren&#8217;t processing images with MXNet on the Raspberry Pi, you can minimize the size of the compiled library by building MXNet without the Open Source Computer Vision (OpenCV) library with the following commands:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">export</span> <span class="nv">USE_OPENCV</span> <span class="o">=</span> <span class="m">0</span>
-    make
-</pre></div>
-</div>
-<p>Otherwise, you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make
-</pre></div>
-</div>
-<p>Executing either of these commands start the build process, which can take up to a couple hours, and creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p>If you are getting build errors in which the compiler is being killed, it is likely that the compiler is running out of memory (especially if you are on Raspberry Pi 1, 2 or Zero, which have less than 1GB of RAM), this can often be rectified by increasing the swapfile size on the Pi by editing the file /etc/dphys-swapfile and changing the line CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024, then running:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>  sudo /etc/init.d/dphys-swapfile stop
-  sudo /etc/init.d/dphys-swapfile start
-  free -m <span class="c1"># to verify the swapfile size has been increased</span>
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>You are now ready to run MXNet on your Raspberry Pi device. You can get started by following the tutorial on <a class="reference external" href="http://mxnet.io/tutorials/embedded/wine_detector.html">Real-time Object Detection with MXNet On The Raspberry Pi</a>.</p>
-<p><em>Note - Because the complete MXNet library takes up a significant amount of the Raspberry Pi&#8217;s limited RAM, when loading training data or large models into memory, you might have to turn off the GUI and terminate running processes to free RAM.</em></p>
-</div><div class="nvidia-jetson-tx2"><p>MXNet supports the Ubuntu Arch64 based operating system so you can run MXNet on NVIDIA Jetson Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Pascal based <a class="reference external" href="http://www.nvidia.com/object/embedded-systems-dev-kits-modules.html">NVIDIA Jetson TX2</a> and install the corresponding python language bindings.</p>
-<p>For the purposes of this install guide we will assume that CUDA is already installed on your Jetson device.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>You need the following additional dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libatlas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations)</li>
-<li>python pip (to load relevant python packages for our language bindings)</li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git build-essential libatlas-base-dev libopencv-dev graphviz python-pip
-    sudo pip install pip --upgrade
-    sudo pip install setuptools numpy --upgrade
-    sudo pip install graphviz jupyter
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>Edit the Makefile to install the MXNet with CUDA bindings to leverage the GPU on the Jetson:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    cp make/config.mk .
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA=1&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA_PATH=/usr/local/cuda&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDNN=1&quot;</span> &gt;&gt; config.mk
-</pre></div>
-</div>
-<p>Edit the Mshadow Makefile to ensure MXNet builds with Pascal&#8217;s hardware level low precision acceleration by editing mshadow/make/mshadow.mk and adding the following after line 122:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">MSHADOW_CFLAGS</span> <span class="o">+=</span> -DMSHADOW_USE_PASCAL<span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p>Now you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make -j <span class="k">$(</span>nproc<span class="k">)</span>
-</pre></div>
-</div>
-<p>Executing this command creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>Add the mxnet folder to the path:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> ..
-    <span class="nb">export</span> <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>
-    <span class="nb">echo</span> <span class="s2">&quot;export PYTHONPATH=</span><span class="nv">$MXNET_HOME</span><span class="s2">/python:</span><span class="nv">$PYTHONPATH</span><span class="s2">&quot;</span> &gt;&gt; ~/.bashrc
-    <span class="nb">source</span> ~/.bashrc
-</pre></div>
-</div>
-<p>You are now ready to run MXNet on your NVIDIA Jetson TX2 device.</p>
-</div>
-</div><p><br/></p>
-<!-- This # tag restarts the page and allows reuse
- of the div classes for validation sections, etc --></div>
-<div class="section" id="validate-mxnet-installation">
-<span id="validate-mxnet-installation"></span><h1>Validate MXNet Installation<a class="headerlink" href="#validate-mxnet-installation" title="Permalink to this headline">¶</a></h1>
-<div class="linux macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a Docker container with <code class="docutils literal"><span class="pre">mxnet/python</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker run -it mxnet/python bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Validate Windows CPU pip install --><div class="windows">
-  <div class="python">
-    <div class="cpu">
-      <div class="pip"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div>
-</div><!-- Mac OS GPU installation validation --><div class="macos">
-  <div class="python">
-    <div class="gpu"><div class="pip virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Windows GPU installation validation --><div class="windows">
-  <div class="python">
-    <div class="gpu"><div class="virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="pip build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Validation for GPU machines --><div class="linux">
-  <div class="python">
-    <div class="gpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a NVIDIA Docker container with <code class="docutils literal"><span class="pre">mxnet/python:gpu</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ nvidia-docker run -it mxnet/python:gpu bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Linux Clean up -->
-<div class="linux">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and mxnet/python docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- MacOS Clean up -->
-<div class="macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and then the docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- Validation for cloud installation --><div class="cloud"><p>Login to the cloud instance you launched, with pre-installed <em>MXNet</em>, following the guide by corresponding cloud provider.</p>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-<!-- Example Python code for CPU --><div class="cpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">         [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-<p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><!-- Example Python code for CPU --><div class="gpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div></div><!-- Example R code for CPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="cpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.cpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Example R code for GPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="gpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.gpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><!-- Windows MXNet Installation validation -->
-<div class="windows">
-  <div class="python">
-    <div class="cpu"><div class="build-from-source virtualenv docker">
-<br/>
-Will be available soon.
-</div></div>
-</div><div class="scala julia perl">
-<div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div>
-<!-- End Windows Installation validation --><div class="devices">
-  <div class="raspberry-pi"><p>Will be available soon.</p>
-</div>
-<div class="nvidia-jetson-tx2"><p>Will be available soon.</p>
-</div>
-</div></div>
-<div class="section" id="download-source-package">
-<span id="download-source-package"></span><h1>Download Source Package<a class="headerlink" href="#download-source-package" title="Permalink to this headline">¶</a></h1>
-</div>
-
-
-        </div>
-      </div>
-      
-      <div class="sphinxsidebar rightsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-  <h3><a href="../index.html">Table Of Contents</a></h3>
-  <ul>
-<li><a class="reference internal" href="#">Installing MXNet</a></li>
-<li><a class="reference internal" href="#validate-mxnet-installation">Validate MXNet Installation</a></li>
-<li><a class="reference internal" href="#download-source-package">Download Source Package</a></li>
-</ul>
-
-        </div>
-      </div>
-    </div><div class="footer">
-<div class="section-disclaimer">
-<div class="container">
-    <div>
-        <img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/apache_incubator_logo.png" height=60>
-        <p>
-            Apache MXNet is an effort undergoing incubation at The Apache Software Foundation (ASF), <strong>sponsored by the <i>Apache Incubator</i></strong>. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-        </p>
-        <p>
-            "Copyright © 2017-2018, The Apache Software Foundation
-            Apache MXNet, MXNet, Apache, the Apache feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the Apache Software Foundation."
-        </p>
-    </div>
-</div>
-</div>
-</div> <!-- pagename != index -->
-    </div>
-
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
-    <script type="text/javascript" src="../_static/js/sidebar.js"></script>
-    <script type="text/javascript" src="../_static/js/search.js"></script>
-    <script type="text/javascript" src="../_static/js/navbar.js"></script>
-    <script type="text/javascript" src="../_static/js/clipboard.min.js"></script>
-    <script type="text/javascript" src="../_static/js/copycode.js"></script>
-    <script type="text/javascript" src="../_static/js/page.js"></script>
-    <script type="text/javascript">
-        $('body').ready(function () {
-            $('body').css('visibility', 'visible');
-        });
-    </script>
-  </body>
-</html>
diff --git a/docs/build_version_doc/artifacts/master.index.html b/docs/build_version_doc/artifacts/master.index.html
deleted file mode 100644
index e9fb9716dc1..00000000000
--- a/docs/build_version_doc/artifacts/master.index.html
+++ /dev/null
@@ -1,1371 +0,0 @@
-<!DOCTYPE html>
-
-<html lang="en">
-  <head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    
-    
-
-    <title>Installing MXNet &mdash; mxnet  documentation</title>
-    
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
-
-    
-    <link rel="stylesheet" href="../_static/basic.css" type="text/css" />
-    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
-    <link rel="stylesheet" href="../_static/mxnet.css" type="text/css">
-    
-    <script type="text/javascript">
-      var DOCUMENTATION_OPTIONS = {
-        URL_ROOT:    '../',
-        VERSION:     '',
-        COLLAPSE_INDEX: false,
-        FILE_SUFFIX: '.html',
-        HAS_SOURCE:  true,
-        SOURCELINK_SUFFIX: '.txt'
-      };
-    </script>
-
-    <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
-    
-    <script type="text/javascript" src="../_static/underscore.js"></script>
-    
-    <script type="text/javascript" src="../_static/searchtools_custom.js"></script>
-    
-    <script type="text/javascript" src="../_static/doctools.js"></script>
-    
-    <script type="text/javascript" src="../_static/selectlang.js"></script>
-    
-
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    <script type="text/javascript"> jQuery(function() { Search.loadIndex("/searchindex.js"); Search.init();}); </script>
-
-    <script>
-      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
-      Date();a=s.createElement(o),
-      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
-      ga('create', 'UA-96378503-1', 'auto');
-      ga('send', 'pageview');
-
-    </script>
-
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/jquery.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/underscore.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="../_static/doctools.js"></script> -->
-    <!-- -->
-    <!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> -->
-    <!-- -->
-    <link rel="index" title="Index" href="../genindex.html" />
-    <link rel="search" title="Search" href="../search.html" /> 
-
-    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-icon.png">
-  </head>
-  <body role="document" background="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet-background-compressed.jpeg">
-    <div class='content-block'><div class="navbar navbar-fixed-top">
-  <div class="container" id="navContainer">
-    <div id="header-inner" class="innder">
-      <h1 id="logo-wrap">
-        <a href="../" id="logo"><img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/mxnet_logo.png"></a>
-      </h1>
-      <nav id="main-nav" class='nav-bar'>
-        <a class="main-nav-link" href="../install/index.html">Install</a>
-
-        <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Gluon <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../gluon/index.html">About</a></li>
-            <li><a class="main-nav-link" href="http://gluon.mxnet.io">Tutorials</a></li>
-          </ul>
-        </span>
-        
-     <span id="dropdown-menu-position-anchor">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">API <span class="caret"></span></a>
-          <ul id="package-dropdown-menu" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../api/python/index.html">Python</a></li>
-            <li><a class="main-nav-link" href="../api/scala/index.html">Scala</a></li>
-            <li><a class="main-nav-link" href="../api/r/index.html">R</a></li>
-            <li><a class="main-nav-link" href="../api/julia/index.html">Julia</a></li>
-            <li><a class="main-nav-link" href="../api/c++/index.html">C++</a></li>
-            <li><a class="main-nav-link" href="../api/perl/index.html">Perl</a></li>
-          </ul>
-        </span>
-
-         <span id="dropdown-menu-position-anchor-docs">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Docs <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-docs" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a>
-            <li><a class="main-nav-link" href="../faq/index.html">FAQ</a></li>
-            <li><a class="main-nav-link" href="../architecture/index.html">Architecture</a></li>
-            <li><a class="main-nav-link" href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-            <li><a class="main-nav-link" href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-          </ul>
-        </span>
-
-
-        <a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a>
-
-        <span id="dropdown-menu-position-anchor-community">
-          <a href="#" class="main-nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">Community <span class="caret"></span></a>
-          <ul id="package-dropdown-menu-community" class="dropdown-menu navbar-menu">
-            <li><a class="main-nav-link" href="../community/index.html">Community</a></li>
-            <li><a class="main-nav-link" href="../community/contribute.html">Contribute</a></li>
-            <li><a class="main-nav-link" href="../community/powered_by.html">Powered By</a></li>
-            <li><a class="main-nav-link" href="http://discuss.mxnet.io">Discuss</a></li>
-          </ul>
-        </span>
-      </nav>
-      <script> function getRootPath(){ return "../" } </script>
-      <div class="burgerIcon dropdown">
-          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">☰</a>
-          <ul id="burgerMenu" class="dropdown-menu">
-              <li><a href="../install/index.html">Install</a></li>
-              <li><a class="main-nav-link" href="../tutorials/index.html">Tutorials</a></li>
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Community</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../community/index.html">Community</a></li>
-                  <li><a tabindex="-1"  href="../community/contribute.html">Contribute</a></li>
-                  <li><a tabindex="-1"  href="../community/powered_by.html">Powered By</a></li>
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">API</a>
-                <ul class="dropdown-menu">
-                  
-                    <li><a tabindex="-1" href="../api/python/index.html">Python</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/scala/index.html">Scala</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/r/index.html">R</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/julia/index.html">Julia</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/c++/index.html">C++</a>
-                    </li>
-                  
-                    <li><a tabindex="-1" href="../api/perl/index.html">Perl</a>
-                    </li>
-                  
-                </ul>
-              </li>
-              
-              <li class="dropdown-submenu">
-                <a href="#" tabindex="-1">Docs</a>
-                <ul class="dropdown-menu">
-                  <li><a tabindex="-1"  href="../tutorials/index.html">Tutorials</a></li>
-                  <li><a tabindex="-1"  href="../faq/index.html">FAQ</a></li>
-                  <li><a tabindex="-1"  href="../architecture/index.html">Architecture</a></li>
-                  <li><a tabindex="-1"  href="https://github.com/apache/incubator-mxnet/tree/master/example">Examples</a></li>
-                  <li><a tabindex="-1"  href="../api/python/gluon/model_zoo.html">Gluon Model Zoo</a></li>
-                </ul>
-              </li>
-              <li><a href="../architecture/index.html">Architecture</a></li>
-		      <li><a class="main-nav-link" href="https://github.com/dmlc/mxnet">Github</a></li>
-          </ul>
-      </div>
-      <div class="plusIcon dropdown">
-        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a>
-        <ul id="plusMenu" class="dropdown-menu dropdown-menu-right"></ul>
-      </div>
-      <div id="search-input-wrap">
-          
-<form class="" role="search" action="../search.html" method="get" autocomplete="off">
-  <div class="form-group inner-addon left-addon">
-    <i class="glyphicon glyphicon-search"></i>
-    <input type="text" name="q" class="form-control" placeholder="Search">
-  </div>
-  <input type="hidden" name="check_keywords" value="yes" />
-  <input type="hidden" name="area" value="default" />
-  
-</form>
-          <div id="search-preview"></div>
-      </div>
-      <div id='searchIcon'>
-          <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
-      </div>
-      <!-- <div id="lang-select-wrap"> -->
-      <!--   <label id="lang-select-label"> -->
-      <!--     <\!-- <i class="fa fa-globe"></i> -\-> -->
-      <!--     <span></span> -->
-      <!--   </label> -->
-      <!--   <select id="lang-select"> -->
-      <!--     <option value="en">Eng</option> -->
-      <!--     <option value="zh">中文</option> -->
-      <!--   </select> -->
-      <!-- </div> -->
-  <!--     <a id="mobile-nav-toggle">
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-        <span class="mobile-nav-toggle-bar"></span>
-      </a> -->
-    </div>
-  </div>
-</div>
-    
-    
-    <script type="text/javascript">
-        $('body').css('background', 'white');
-    </script>
-    <div class="container">
-      <div class="row">
-        <div class="sphinxsidebar leftsidebar" role="navigation" aria-label="main navigation">
-          <div class="sphinxsidebarwrapper">
-            
-  <ul>
-<li class="toctree-l1"><a class="reference internal" href="../api/python/index.html">Python Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/r/index.html">R Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/julia/index.html">Julia Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/c++/index.html">C++ Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/scala/index.html">Scala Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../api/perl/index.html">Perl Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../faq/index.html">HowTo Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../architecture/index.html">System Documents</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../community/index.html">Community</a></li>
-</ul>
-
-          </div>
-        </div>
-        <div class="content">
-          <div class="page-tracker"></div>
-          
-  <div class="section" id="installing-mxnet">
-<span id="installing-mxnet"></span><h1>Installing MXNet<a class="headerlink" href="#installing-mxnet" title="Permalink to this headline">¶</a></h1>
-<p>Indicate your preferred configuration. Then, follow the customized commands to install <em>MXNet</em>.</p>
-<script type="text/javascript" src='../_static/js/options.js'></script><!-- START - OS Menu --><div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
-</div><!-- START - Language Menu --><div class="linux macos windows">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
-</div>
-</div><!-- No CPU GPU for other Devices -->
-<div class="linux macos windows cloud">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
-</div>
-</div><!-- other devices -->
-<div class="devices">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
-</div>
-</div><!-- Linux Python GPU Options --><div class="linux macos windows">
-<div class="python">
-<div class="cpu gpu">
-<div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
-</div>
-</div>
-</div>
-</div><!-- END - Main Menu --><!-- START - Linux Python CPU Installation Instructions --><div class="linux">
-<div class="python">
-<div class="cpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python gcc
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet --pre
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-mkl --pre
-</pre></div>
-</div>
-</div> <!-- End of pip --><div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet --pre
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div> <!-- END of virtualenv --><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of docker --><div class="build-from-source">
-<br/><p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div><!-- END of build from source -->
-</div><!-- END of CPU -->
-<!-- END - Linux Python CPU Installation Instructions --><!-- START - Linux Python GPU Installation Instructions --><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - wget and latest pip.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command in the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y wget python
-$ wget https://bootstrap.pypa.io/get-pip.py <span class="o">&amp;&amp;</span> sudo python get-pip.py
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90 --pre
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Experimental Choice</strong> If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90mkl --pre
-</pre></div>
-</div>
-</div> <!-- END of pip --><div class="virtualenv"><p><br/></p>
-<p><strong>Step 1</strong>  Install virtualenv for Ubuntu.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y python-dev python-virtualenv
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet-cu90 --pre
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div> <!-- END of virtualenv --><div class="docker"><p><br/></p>
-<p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> [Optional] Post installation steps to manage Docker as a non-root user.</p>
-<p>Follow the four steps in this <a class="reference external" href="https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user">docker documentation</a> to allow managing docker containers without <em>sudo</em>.</p>
-<p>If you skip this step, you need to use <em>sudo</em> each time you invoke Docker.</p>
-<p><strong>Step 3</strong> Install <em>nvidia-docker-plugin</em> following the <a class="reference external" href="https://github.com/NVIDIA/nvidia-docker/wiki/Installation">installation instructions</a>. <em>nvidia-docker-plugin</em> is required to enable the usage of GPUs from the docker containers.</p>
-<p><strong>Step 4</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python:gpu <span class="c1"># Use sudo if you skip Step 2</span>
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images <span class="c1"># Use sudo if you skip Step 2</span>
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        gpu                 493b2683c269        <span class="m">3</span> weeks ago         <span class="m">4</span>.77 GB
-</pre></div>
-</div>
-<p><strong>Step 5</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of docker --><div class="build-from-source"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Install the MXNet Python binding</strong></p>
-<p><strong>Step 1</strong> Install prerequisites - python, setup-tools, python-pip and libfortran (required for Numpy)..</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y python-dev python-setuptools python-pip libgfortran3
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install the MXNet Python binding.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">cd</span> python
-$ pip install --upgrade pip
-$ pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>sudo apt-get install graphviz
-pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of build from source -->
-</div> <!-- END of GPU -->
-</div> <!-- END of Python -->
--<!-- END - Linux Python GPU Installation Instructions --><div class="r">
-<div class="cpu"><p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV and USE_BLAS are make file flags to set compilation options to use OpenCV and BLAS library. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div> <!-- END of CPU --><div class="gpu"><p>The following installation instructions have been tested on Ubuntu 14.04 and 16.04.</p>
-<p><strong>Prerequisites</strong></p>
-<p>Install the following NVIDIA libraries to setup <em>MXNet</em> with GPU support:</p>
-<ol class="simple">
-<li>Install CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="http://docs.nvidia.com/cuda/cuda-installation-guide-linux/">installation guide</a>.</li>
-<li>Install cuDNN 7 for CUDA 9.0 following the NVIDIA&#8217;s <a class="reference external" href="https://developer.nvidia.com/cudnn">installation guide</a>. You may need to register with NVIDIA for downloading the cuDNN library.</li>
-</ol>
-<p><strong>Note:</strong> Make sure to add CUDA install path to <code class="docutils literal"><span class="pre">LD_LIBRARY_PATH</span></code>.</p>
-<p>Example - <em>export LD_LIBRARY_PATH=/usr/local/cuda/lib64/:$LD_LIBRARY_PATH</em></p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings.</li>
-</ol>
-<p><strong>Minimum Requirements</strong></p>
-<ol class="simple">
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">GCC 4.8</a> or later to compile C++ 11.</li>
-<li><a class="reference external" href="https://www.gnu.org/software/make/">GNU Make</a></li>
-</ol>
-<p><br/></p>
-<p><strong>Build the MXNet core shared library</strong></p>
-<p><strong>Step 1</strong> Install build tools and git.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get update
-$ sudo apt-get install -y build-essential git
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install OpenBLAS.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms">BLAS</a> and <a class="reference external" href="https://en.wikipedia.org/wiki/LAPACK">LAPACK</a> libraries for accelerated numerical computations on CPU machine. There are several flavors of BLAS/LAPACK libraries - <a class="reference external" href="http://www.openblas.net/">OpenBLAS</a>, <a class="reference external" href="http://math-atlas.sourceforge.net/">ATLAS</a> and <a class="reference external" href="https://software.intel.com/en-us/intel-mkl">MKL</a>. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopenblas-dev liblapack-dev
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Install OpenCV.</p>
-<p><em>MXNet</em> uses <a class="reference external" href="http://opencv.org/">OpenCV</a> for efficient image loading and augmentation operations.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ sudo apt-get install -y libopencv-dev
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Download MXNet sources and build MXNet core shared library. You can clone the repository as described in the following code block, or you may try the <a href="download.html">download links</a> for your desired MXNet version.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ git clone --recursive https://github.com/apache/incubator-mxnet
-$ <span class="nb">cd</span> incubator-mxnet
-$ make -j <span class="k">$(</span>nproc<span class="k">)</span> <span class="nv">USE_OPENCV</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_BLAS</span><span class="o">=</span>openblas <span class="nv">USE_CUDA</span><span class="o">=</span><span class="m">1</span> <span class="nv">USE_CUDA_PATH</span><span class="o">=</span>/usr/local/cuda <span class="nv">USE_CUDNN</span><span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p><em>Note</em> - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options in <code class="docutils literal"><span class="pre">make/config.mk</span></code>. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is - <em>/usr/local/cuda</em>.</p>
-<p><br/></p>
-<p><strong>Build and install the MXNet R binding</strong></p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ make rpkg
-$ R CMD INSTALL mxnet_current_r.tar.gz
-</pre></div>
-</div>
-</div> <!-- END of GPU -->
-</div> <!-- END of R --><div class="scala julia perl">
-<div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="ubuntu_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div> <!-- End of cpu gpu -->
-</div> <!-- End of scala julia perl -->
-</div> <!-- END - Linux --><!-- START - MacOS Python CPU Installation Instructions --><div class="macos">
-<div class="python">
-<div class="cpu"><p>The following installation instructions have been tested on OSX Sierra and El Capitan.</p>
-<div class="pip">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet with OpenBLAS acceleration.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install --upgrade pip
-$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet --pre
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of pip --><div class="virtualenv">
-<br/><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install virtualenv for macOS.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install virtualenv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Create and activate virtualenv environment for MXNet.</p>
-<p>Following command creates a virtualenv environment at <code class="docutils literal"><span class="pre">~/mxnet</span></code> directory. However, you can choose any directory by replacing <code class="docutils literal"><span class="pre">~/mxnet</span></code> with a directory of your choice.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ virtualenv --system-site-packages ~/mxnet
-</pre></div>
-</div>
-<p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p><strong>Step 4</strong>  Install MXNet in the active virtualenv environment.</p>
-<p>Installing <em>MXNet</em> with pip requires a latest version of <code class="docutils literal"><span class="pre">pip</span></code>. Install the latest version of <code class="docutils literal"><span class="pre">pip</span></code> by issuing the following command.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade pip
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install --upgrade setuptools
-</pre></div>
-</div>
-<p>Install <em>MXNet</em> with OpenBLAS acceleration.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$ pip install mxnet --pre
-</pre></div>
-</div>
-<p><strong>Step 5</strong>  Install <a class="reference external" href="http://www.graphviz.org/">Graphviz</a>. (Optional, needed for graph visualization using <code class="docutils literal"><span class="pre">mxnet.viz</span></code> package).</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ brew install graphviz
-<span class="o">(</span>mxnet<span class="o">)</span>$ pip install graphviz
-</pre></div>
-</div>
-<p><strong>Step 6</strong>  Validate the installation by running simple <em>MXNet</em> code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-<p><strong>Note</strong>  You can read more about virtualenv <a class="reference external" href="https://virtualenv.pypa.io/en/stable/userguide/">here</a>.</p>
-</div> <!-- End of virtualenv --><div class="docker">
-<br/><p>Docker images with <em>MXNet</em> are available at <a class="reference external" href="https://hub.docker.com/r/mxnet/">Docker Hub</a>.</p>
-<p><strong>Step 1</strong>  Install Docker on your machine by following the <a class="reference external" href="https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac">docker installation instructions</a>.</p>
-<p><em>Note</em> - You can install Community Edition (CE) to get started with <em>MXNet</em>.</p>
-<p><strong>Step 2</strong> Pull the MXNet docker image.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker pull mxnet/python
-</pre></div>
-</div>
-<p>You can list docker images to see if mxnet/python docker image pull was successful.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker images
-
-REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
-mxnet/python        latest              00d026968b3c        <span class="m">3</span> weeks ago         <span class="m">1</span>.41 GB
-</pre></div>
-</div>
-<p><strong>Step 4</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of docker --><div class="build-from-source">
-<br/><p><strong>Prerequisites</strong></p>
-<p>If not already installed, <a class="reference external" href="https://developer.apple.com/xcode/">download and install Xcode</a> (or <a class="reference external" href="https://itunes.apple.com/us/app/xcode/id497799835">insall it from the App Store</a>) for macOS. <a class="reference external" href="https://en.wikipedia.org/wiki/Xcode">Xcode</a> is an integrated development environment for macOS containing a suite of software development tools like C/C++ compilers, BLAS library and more.</p>
-<p><br/></p>
-<p>Building <em>MXNet</em> from source is a 2 step process.</p>
-<ol class="simple">
-<li>Build the <em>MXNet</em> core shared library, <code class="docutils literal"><span class="pre">libmxnet.so</span></code>, from the C++ sources.</li>
-<li>Build the language specific bindings. Example - Python bindings, Scala bindings.</li>
-</ol>
-<p>Make sure you have installed Xcode before proceeding further.</p>
-<p><br/></p>
-<p>All the instructions to build <em>MXNet</em> core shared library and <em>MXNet</em> Python bindings are compiled as one helper <em>bash</em> script. You can use <a class="reference external" href="https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh">this bash script</a> to build <em>MXNet</em> for Python, from source, on macOS.</p>
-<p><strong>Step 1</strong> Download the bash script for building MXNet from source.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ curl -O https://raw.githubusercontent.com/dmlc/mxnet/master/setup-utils/install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Run the script to get latest MXNet source and build.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Make the script executable</span>
-$ chmod <span class="m">744</span> install-mxnet-osx-python.sh
-
-<span class="c1"># Run the script. It takes around 5 mins.</span>
-$ bash install-mxnet-osx-python.sh
-</pre></div>
-</div>
-<p><strong>Step 3</strong> Validate the installation by running simple MXNet code described <a class="reference external" href="#validate-mxnet-installation">here</a>.</p>
-</div> <!-- END of build from source -->
-</div> <!-- END of CPU --><!-- START - Mac OS Python GPU Installation Instructions -->
-<div class="gpu">
-<div class="pip virtualenv docker">
-</br><p>Try the <strong>Build from Source</strong> option for now.</p>
-</div><div class="build-from-source"><p><strong>Step 1</strong>  Install prerequisites - Homebrew, python development tools.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="c1"># Install Homebrew</span>
-$ /usr/bin/ruby -e <span class="s2">&quot;</span><span class="k">$(</span>curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install<span class="k">)</span><span class="s2">&quot;</span>
-$ <span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span>/usr/local/bin:/usr/local/sbin:<span class="nv">$PATH</span>
-
-<span class="c1"># Install python development tools - python2.7, pip, python-setuptools</span>
-$ brew install python pkg-config graphviz
-</pre></div>
-</div>
-<p><strong>Step 2</strong>  Install optional components - OpenCV</p>
-<p>If you want to use OpenCV you should install it first, then build MXNet with the <code class="docutils literal"><span class="pre">USE_OPENCV=1</span></code> option in the later steps.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>brew tap homebrew/science
-brew install opencv
-</pre></div>
-</div>
-<p><strong>Step 3</strong>  Install CUDA and cuDNN</p>
-<p>The following instructions are for CUDA 9.1 and cuDNN 7 for macOS 10.12+ and a CUDA-capable GPU. They summarize confirmed successful builds in <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/9217">#9217</a>.
-Alternatively, you may follow the <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">CUDA installation instructions for macOS</a>.</p>
-<ol class="simple">
-<li><a class="reference external" href="https://developer.apple.com/download/more/">Download Xcode 8.3.3 from Apple</a>. This is the version <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html">NVIDIA specifies in its instructions for macOS</a>. Unzip and rename to <code class="docutils literal"><span class="pre">Xcode8.3.3.app</span></code>.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcode-select</span> <span class="pre">-s</span> <span class="pre">/Applications/Xcode8.3.3.app</span></code> or to wherever you have placed Xcode.</li>
-<li>Run <code class="docutils literal"><span class="pre">xcode-select</span> <span class="pre">--install</span></code> to install all command line tools, compilers, etc.</li>
-<li>Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">xcodebuild</span> <span class="pre">-license</span> <span class="pre">accept</span></code> to accept Xcode&#8217;s licensing terms.</li>
-<li>Install CUDA for macOS. Specific steps are provided in NVIDIA&#8217;s <a class="reference external" href="https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#installation">CUDA installation instructions</a>.</li>
-<li><a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#download-mac">Download</a> and <a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installmac">install</a> cuDNN for macOS. You will need to <a class="reference external" href="https://developer.nvidia.com/accelerated-computing-developer">create a free developer account</a> with NVIDIA prior to getting the download link.</li>
-</ol>
-<p><strong>Step 4</strong>  Build MXNet</p>
-<ol>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">git</span> <span class="pre">clone</span> <span class="pre">--recursive</span> <span class="pre">https://github.com/apache/incubator-mxnet.git</span> <span class="pre">mxnet</span></code> to get the latest version.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">cd</span> <span class="pre">mxnet</span></code>.</p>
-</li>
-<li><p class="first">Edit the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> file to set the following parameters:</p>
-<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">USE_CUDA</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_CUDA_PATH</span> <span class="o">=</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">cuda</span>
-<span class="n">USE_CUDNN</span> <span class="o">=</span> <span class="mi">1</span>
-<span class="n">USE_OPENCV</span> <span class="o">=</span> <span class="mi">0</span>   <span class="c1"># set to 1 if you want to build with OpenCV</span>
-</pre></div>
-</div>
-</li>
-<li><p class="first">Copy the <code class="docutils literal"><span class="pre">make/osx.mk</span></code> to <code class="docutils literal"><span class="pre">config.mk</span></code></p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">make</span></code>. If you previously attempted to compile you might want to do <code class="docutils literal"><span class="pre">make</span> <span class="pre">clean_all</span></code> first. You can also run <code class="docutils literal"><span class="pre">make</span> <span class="pre">-j</span></code> with the number of processors you have to compile with multithreading. There&#8217;ll be plenty of warnings, but there should be no errors.</p>
-</li>
-<li><p class="first">Once finished, you should have a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in <code class="docutils literal"><span class="pre">lib/</span></code>.</p>
-</li>
-<li><p class="first">Do <code class="docutils literal"><span class="pre">cd</span> <span class="pre">python</span></code>.</p>
-</li>
-<li><p class="first">Run <code class="docutils literal"><span class="pre">sudo</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-e</span> <span class="pre">.</span></code> <strong>Note</strong>: the <code class="docutils literal"><span class="pre">.</span></code> is part of the command.</p>
-</li>
-</ol>
-</div> <!-- END of build from source -->
-</div> <!-- END of GPU -->
-</div> <!-- END of Python --><!-- START - MacOS R CPU Installation Instructions --><div class="r">
-<div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div> <!-- END of CPU --><div class="gpu"><p>Will be available soon.</p>
-</div> <!-- END of GPU -->
-</div> <!-- END of R --><div class="scala julia perl">
-<div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="osx_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div> <!-- End of cpu gpu -->
-</div> <!-- End of scala julia perl -->
-</div> <!-- END - Mac OS --><div class="windows">
-<div class="python">
-<div class="cpu">
-<div class="pip"><p><br/></p>
-<p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet --pre
-</pre></div>
-</div>
-</div> <!-- End of pip --><div class="virtualenv docker build-from-source"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div> <!-- End of virtualenv docker build-from-source -->
-</div> <!-- End of CPU --><div class="gpu">
-<div class="pip"><p><br/></p>
-<p><strong>Step 1</strong>  Install Python.</p>
-<p><a class="reference external" href="https://www.anaconda.com/download/">Anaconda</a> is recommended.</p>
-<p><strong>Step 2</strong>  Install <em>MXNet</em> with GPU support using CUDA 9.0.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ pip install mxnet-cu90 --pre
-</pre></div>
-</div>
-<p>Refer to <a class="reference external" href="https://github.com/apache/incubator-mxnet/issues/8671">#8671</a> for status on CUDA 9.1 support.</p>
-</div>
-<div class="build-from-source">
-<br/><p>We provide both options to build and install MXNet yourself using <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2017</a>, and <a class="reference external" href="https://www.visualstudio.com/vs/older-downloads/">Microsoft Visual Studio 2015</a>.</p>
-<p><strong>Option 1</strong></p>
-<p>To build and install MXNet yourself using <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2017</a>, you need the following dependencies. Install the required dependencies:</p>
-<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/downloads/">Microsoft Visual Studio 2017</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and install <a class="reference external" href="https://cmake.org/files/v3.11/cmake-3.11.0-rc4-win64-x64.msi">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.4.1/opencv-3.4.1-vc14_vc15.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code> (e.g., <code class="docutils literal"><span class="pre">OpenCV_DIR</span> <span class="pre">=</span> <span class="pre">C:\utils\opencv\build</span></code>).</li>
-<li>If you don’t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="https://sourceforge.net/projects/openblas/files/v0.2.20/OpenBLAS%200.2.20%20version.zip/download">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories (e.g., <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span> <span class="pre">=</span> <span class="pre">C:\utils\OpenBLAS</span></code>).</li>
-<li>Download and install CUDA: Install <a class="reference external" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&amp;target_arch=x86_64&amp;target_version=10&amp;target_type=exelocal">CUDA</a>, and Download the base installer (e.g., <code class="docutils literal"><span class="pre">cuda_9.1.85_win10.exe</span></code>).</li>
-<li>Download and install cuDNN. To get access to the download link, register as an NVIDIA community user. Then Follow the <a class="reference external" href="http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-windows">link</a> to install the cuDNN.</li>
-<li>Download and install <a class="reference external" href="https://git-for-windows.github.io/">git</a>.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Start <code class="docutils literal"><span class="pre">cmd</span></code> in windows.</li>
-<li>Download the MXNet source code from GitHub by using following command:</li>
-</ol>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cd C<span class="o">:</span>\
-git clone https<span class="o">://</span>github.com<span class="o">/</span>apache<span class="o">/</span>incubator<span class="o">-</span>mxnet.git <span class="o">--</span>recursive
-</pre></div>
-</div>
-<ol class="simple">
-<li>Follow <a class="reference external" href="https://docs.microsoft.com/en-us/visualstudio/install/modify-visual-studio">this link</a> to modify <code class="docutils literal"><span class="pre">Individual</span> <span class="pre">components</span></code>, and check <code class="docutils literal"><span class="pre">VC++</span> <span class="pre">2017</span> <span class="pre">version</span> <span class="pre">15.4</span> <span class="pre">v14.11</span> <span class="pre">toolset</span></code>, and click <code class="docutils literal"><span class="pre">Modify</span></code>.</li>
-<li>Change the version of the Visual studio 2017 to v14.11 using the following command (by default the VS2017 is installed in the following path):</li>
-</ol>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="s">&quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat&quot;</span> <span class="o">-</span>vcvars_ver<span class="o">=</span><span class="m">14.11</span>
-</pre></div>
-</div>
-<ol class="simple">
-<li>Create a build dir using the following command and go to the directory, for example:</li>
-</ol>
-<div class="highlight-r"><div class="highlight"><pre><span></span>mkdir C<span class="o">:</span>\build
-cd C<span class="o">:</span>\build
-</pre></div>
-</div>
-<ol class="simple">
-<li>CMake the MXNet source code by using following command:</li>
-</ol>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cmake <span class="o">-</span>G <span class="s">&quot;Visual Studio 15 2017 Win64&quot;</span> <span class="o">-</span><span class="bp">T</span> cuda<span class="o">=</span><span class="m">9.1</span><span class="p">,</span>host<span class="o">=</span>x64 <span class="o">-</span>DUSE_CUDA<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_CUDNN<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_NVRTC<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_OPENCV<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_OPENMP<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_BLAS<span class="o">=</span>open <span class="o">-</span>DUSE_LAPACK<span class="o">=</span><span class="m">1</span> <span class="o">-</span>DUSE_DIST_KVSTORE<span class="o">=</span><span class="m">0</span> <span class="o">-</span>DCUDA_ARCH_LIST<span class="o">=</span>Common <span class="o">-</span>DCUDA_TOOLSET<span class="o">=</span><span class="m">9.1</span> <span class="o">-</span>DCUDNN_INCLUDE<span class="o">=</span>C<span class="o">:</span>\cuda\include <span class="o">-</span>DCUDNN_LIBRARY<span class="o">=</span>C<span class="o">:</span>\cuda\lib\x64\cudnn.lib <span class="s">&quot;C:\incubator-mxnet&quot;</span>
-</pre></div>
-</div>
-<p>NOTE: make sure the DCUDNN_INCLUDE and DCUDNN_LIBRARY pointing to the “include” and “cudnn.lib” of your CUDA installed location, and the <code class="docutils literal"><span class="pre">C:\incubator-mxnet</span></code> is the location of the source code you just git in the previous step</p>
-<ol class="simple">
-<li>After the CMake successfully completed, compile the the MXNet source code by using following command:</li>
-</ol>
-<div class="highlight-r"><div class="highlight"><pre><span></span>msbuild mxnet.sln <span class="o">/</span>p<span class="o">:</span>Configuration<span class="o">=</span>Release<span class="p">;</span>Platform<span class="o">=</span>x64 <span class="o">/</span>maxcpucount
-</pre></div>
-</div>
-<p><strong>Option 2</strong></p>
-<p>To build and install MXNet yourself using <a class="reference external" href="https://www.visualstudio.com/vs/older-downloads/">Microsoft Visual Studio 2015</a>, you need the following dependencies. Install the required dependencies:</p>
-<ol class="simple">
-<li>If <a class="reference external" href="https://www.visualstudio.com/vs/older-downloads/">Microsoft Visual Studio 2015</a> is not already installed, download and install it. You can download and install the free community edition.</li>
-<li>Download and install <a class="reference external" href="https://cmake.org/">CMake</a> if it is not already installed.</li>
-<li>Download and install <a class="reference external" href="http://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.0.0/opencv-3.0.0.exe/download">OpenCV</a>.</li>
-<li>Unzip the OpenCV package.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenCV_DIR</span></code> to point to the <code class="docutils literal"><span class="pre">OpenCV</span> <span class="pre">build</span> <span class="pre">directory</span></code> (<code class="docutils literal"><span class="pre">C:\opencv\build\x64\vc14</span></code> for example). Also, you need to add the OpenCV bin directory (<code class="docutils literal"><span class="pre">C:\opencv\build\x64\vc14\bin</span></code> for example) to the <code class="docutils literal"><span class="pre">PATH</span></code> variable.</li>
-<li>If you don&#8217;t have the Intel Math Kernel Library (MKL) installed, download and install <a class="reference external" href="http://sourceforge.net/projects/openblas/files/v0.2.14/">OpenBlas</a>.</li>
-<li>Set the environment variable <code class="docutils literal"><span class="pre">OpenBLAS_HOME</span></code> to point to the <code class="docutils literal"><span class="pre">OpenBLAS</span></code> directory that contains the <code class="docutils literal"><span class="pre">include</span></code> and <code class="docutils literal"><span class="pre">lib</span></code> directories. Typically, you can find the directory in <code class="docutils literal"><span class="pre">C:\Program</span> <span class="pre">files</span> <span class="pre">(x86)\OpenBLAS\</span></code>.</li>
-<li>Download and install <a class="reference external" href="https://developer.nvidia.com/cuda-downloads?target_os=Windows&amp;target_arch=x86_64">CUDA</a> and <a class="reference external" href="https://developer.nvidia.com/cudnn">cuDNN</a>. To get access to the download link, register as an NVIDIA community user.</li>
-</ol>
-<p>After you have installed all of the required dependencies, build the MXNet source code:</p>
-<ol class="simple">
-<li>Download the MXNet source code from <a class="reference external" href="https://github.com/apache/incubator-mxnet">GitHub</a>.</li>
-<li>Use <a class="reference external" href="https://cmake.org/">CMake</a> to create a Visual Studio solution in <code class="docutils literal"><span class="pre">./build</span></code>.</li>
-<li>In Visual Studio, open the solution file,<code class="docutils literal"><span class="pre">.sln</span></code>, and compile it.
-These commands produce a library called <code class="docutils literal"><span class="pre">mxnet.dll</span></code> in the <code class="docutils literal"><span class="pre">./build/Release/</span></code> or <code class="docutils literal"><span class="pre">./build/Debug</span></code> folder.</li>
-</ol>
-<p><p> </p>
-
-Next, we install the <code class="docutils literal"><span class="pre">graphviz</span></code> library that we use for visualizing network graphs that you build on MXNet. We will also install <a class="reference external" href="http://jupyter.readthedocs.io/">Jupyter Notebook</a> which is used for running MXNet tutorials and examples.</p>
-<ul class="simple">
-<li>Install the <code class="docutils literal"><span class="pre">graphviz</span></code> by downloading the installer from the <a class="reference external" href="https://graphviz.gitlab.io/_pages/Download/Download_windows.html">Graphviz Download Page</a>.
-<strong>Note</strong> Make sure to add the <code class="docutils literal"><span class="pre">graphviz</span></code> executable path to the PATH environment variable. Refer <a class="reference external" href="http://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft">here for more details</a></li>
-</ul>
-<p><p> </p>
-</p>
-</div> <!-- End of pip -->
-</div> <!-- End of GPU -->
-</div> <!-- End of Python --><!-- START - Windows R CPU Installation Instructions --><div class="r">
-<div class="cpu"><p>The CPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-</div> <!-- END - Windows R CPU --><div class="gpu"><p>The GPU version of MXNet R package can be installed in R like other packages</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span>cran <span class="o">&lt;-</span> <span class="kp">getOption</span><span class="p">(</span><span class="s">&quot;repos&quot;</span><span class="p">)</span>
-cran<span class="p">[</span><span class="s">&quot;dmlc&quot;</span><span class="p">]</span> <span class="o">&lt;-</span> <span class="s">&quot;https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU&quot;</span>
-<span class="kp">options</span><span class="p">(</span>repos <span class="o">=</span> cran<span class="p">)</span>
-install.packages<span class="p">(</span><span class="s">&quot;mxnet&quot;</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>Alternatively, You can also follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to build MXNet from source.</p>
-</div> <!-- END of GPU -->
-</div> <!-- END - Windows R --><div class="scala julia perl">
-<div class="cpu gpu"><p>Follow the installation instructions <a class="reference internal" href="windows_setup.html"><span class="doc">in this guide</span></a> to set up MXNet.</p>
-</div> <!-- End of cpu gpu -->
-</div> <!-- End of scala julia perl -->
-</div> <!-- End of Windows --><!-- START - Cloud Python Installation Instructions --><div class="cloud"><p>AWS Marketplace distributes Deep Learning AMIs (Amazon Machine Image) with MXNet pre-installed. You can launch one of these Deep Learning AMIs by following instructions in the <a class="reference external" href="http://docs.aws.amazon.com/dlami/latest/devguide/what-is-dlami.html">AWS Deep Learning AMI Developer Guide</a>.</p>
-<p>You can also run distributed deep learning with <em>MXNet</em> on AWS using <a class="reference external" href="https://github.com/awslabs/deeplearning-cfn/blob/master/README.md">Cloudformation Template</a>.</p>
-</div> <!-- END - Cloud Python Installation Instructions --><div class="devices">
-  <div class="raspberry-pi"><p>MXNet supports the Debian based Raspbian ARM based operating system so you can run MXNet on Raspberry Pi Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Raspberry Pi and install the Python bindings for the library.</p>
-<p>The complete MXNet library and its requirements can take almost 200MB of RAM, and loading large models with the library can take over 1GB of RAM. Because of this, we recommend running MXNet on the Raspberry Pi 3 or an equivalent device that has more than 1 GB of RAM and a Secure Digital (SD) card that has at least 4 GB of free memory.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>On Raspbian versions Wheezy and later, you need the following dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libblas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations. This is optional if you want to save RAM and Disk Space)</li>
-<li>A C++ compiler that supports C++ 11. The C++ compiler compiles and builds MXNet source code. Supported compilers include the following:</li>
-<li><a class="reference external" href="https://gcc.gnu.org/gcc-4.8/">G++ (4.8 or later)</a></li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git cmake build-essential g++-4.8 c++-4.8 liblapack* libblas* libopencv*
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>If you aren&#8217;t processing images with MXNet on the Raspberry Pi, you can minimize the size of the compiled library by building MXNet without the Open Source Computer Vision (OpenCV) library with the following commands:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">export</span> <span class="nv">USE_OPENCV</span> <span class="o">=</span> <span class="m">0</span>
-    make
-</pre></div>
-</div>
-<p>Otherwise, you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make
-</pre></div>
-</div>
-<p>Executing either of these commands start the build process, which can take up to a couple hours, and creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p>If you are getting build errors in which the compiler is being killed, it is likely that the compiler is running out of memory (especially if you are on Raspberry Pi 1, 2 or Zero, which have less than 1GB of RAM), this can often be rectified by increasing the swapfile size on the Pi by editing the file /etc/dphys-swapfile and changing the line CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024, then running:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>  sudo /etc/init.d/dphys-swapfile stop
-  sudo /etc/init.d/dphys-swapfile start
-  free -m <span class="c1"># to verify the swapfile size has been increased</span>
-</pre></div>
-</div>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>You are now ready to run MXNet on your Raspberry Pi device. You can get started by following the tutorial on <a class="reference external" href="http://mxnet.io/tutorials/embedded/wine_detector.html">Real-time Object Detection with MXNet On The Raspberry Pi</a>.</p>
-<p><em>Note - Because the complete MXNet library takes up a significant amount of the Raspberry Pi&#8217;s limited RAM, when loading training data or large models into memory, you might have to turn off the GUI and terminate running processes to free RAM.</em></p>
-</div> <!-- End of raspberry pi --><div class="nvidia-jetson-tx2"><p>MXNet supports the Ubuntu Arch64 based operating system so you can run MXNet on NVIDIA Jetson Devices.</p>
-<p>These instructions will walk through how to build MXNet for the Pascal based <a class="reference external" href="http://www.nvidia.com/object/embedded-systems-dev-kits-modules.html">NVIDIA Jetson TX2</a> and install the corresponding python language bindings.</p>
-<p>For the purposes of this install guide we will assume that CUDA is already installed on your Jetson device.</p>
-<p><strong>Install MXNet</strong></p>
-<p>Installing MXNet is a two-step process:</p>
-<ol class="simple">
-<li>Build the shared library from the MXNet C++ source code.</li>
-<li>Install the supported language-specific packages for MXNet.</li>
-</ol>
-<p><strong>Step 1</strong> Build the Shared Library</p>
-<p>You need the following additional dependencies:</p>
-<ul class="simple">
-<li>Git (to pull code from GitHub)</li>
-<li>libatlas (for linear algebraic operations)</li>
-<li>libopencv (for computer vision operations)</li>
-<li>python pip (to load relevant python packages for our language bindings)</li>
-</ul>
-<p>Install these dependencies using the following commands in any directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    sudo apt-get update
-    sudo apt-get -y install git build-essential libatlas-base-dev libopencv-dev graphviz python-pip
-    sudo pip install pip --upgrade
-    sudo pip install setuptools numpy --upgrade
-    sudo pip install graphviz jupyter
-</pre></div>
-</div>
-<p>Clone the MXNet source code repository using the following <code class="docutils literal"><span class="pre">git</span></code> command in your home directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    git clone https://github.com/apache/incubator-mxnet.git --recursive
-    <span class="nb">cd</span> incubator-mxnet
-</pre></div>
-</div>
-<p>Edit the Makefile to install the MXNet with CUDA bindings to leverage the GPU on the Jetson:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    cp make/config.mk .
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA=1&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDA_PATH=/usr/local/cuda&quot;</span> &gt;&gt; config.mk
-    <span class="nb">echo</span> <span class="s2">&quot;USE_CUDNN=1&quot;</span> &gt;&gt; config.mk
-</pre></div>
-</div>
-<p>Edit the Mshadow Makefile to ensure MXNet builds with Pascal&#8217;s hardware level low precision acceleration by editing 3rdparty/mshadow/make/mshadow.mk and adding the following after line 122:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">MSHADOW_CFLAGS</span> <span class="o">+=</span> -DMSHADOW_USE_PASCAL<span class="o">=</span><span class="m">1</span>
-</pre></div>
-</div>
-<p>Now you can build the complete MXNet library with the following command:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    make -j <span class="k">$(</span>nproc<span class="k">)</span>
-</pre></div>
-</div>
-<p>Executing this command creates a file called <code class="docutils literal"><span class="pre">libmxnet.so</span></code> in the mxnet/lib directory.</p>
-<p><strong>Step 2</strong> Install MXNet Python Bindings</p>
-<p>To install Python bindings run the following commands in the MXNet directory:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> python
-    pip install --upgrade pip
-    pip install -e .
-</pre></div>
-</div>
-<p>Note that the <code class="docutils literal"><span class="pre">-e</span></code> flag is optional. It is equivalent to <code class="docutils literal"><span class="pre">--editable</span></code> and means that if you edit the source files, these changes will be reflected in the package installed.</p>
-<p>Add the mxnet folder to the path:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>    <span class="nb">cd</span> ..
-    <span class="nb">export</span> <span class="nv">MXNET_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>
-    <span class="nb">echo</span> <span class="s2">&quot;export PYTHONPATH=</span><span class="nv">$MXNET_HOME</span><span class="s2">/python:</span><span class="nv">$PYTHONPATH</span><span class="s2">&quot;</span> &gt;&gt; ~/.bashrc
-    <span class="nb">source</span> ~/.bashrc
-</pre></div>
-</div>
-<p>You are now ready to run MXNet on your NVIDIA Jetson TX2 device.</p>
-</div> <!-- End of jetson -->
-</div> <!-- End of devices --><!-- This # tag restarts the page and allows reuse
- of the div classes for validation sections, etc --></div>
-<div class="section" id="validate-mxnet-installation">
-<span id="validate-mxnet-installation"></span><h1>Validate MXNet Installation<a class="headerlink" href="#validate-mxnet-installation" title="Permalink to this headline">¶</a></h1>
-<div class="linux macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a Docker container with <code class="docutils literal"><span class="pre">mxnet/python</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ docker run -it mxnet/python bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Validate Windows CPU pip install --><div class="windows">
-  <div class="python">
-    <div class="cpu">
-      <div class="pip"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div>
-</div><!-- Mac OS GPU installation validation --><div class="macos">
-  <div class="python">
-    <div class="gpu"><div class="pip virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Windows GPU installation validation --><div class="windows">
-  <div class="python">
-    <div class="gpu"><div class="virtualenv docker">
-</br><p>Will be available soon.</p>
-</div><div class="pip build-from-source">
-</br><p>From the MXNet root directory run: <code class="docutils literal"><span class="pre">python</span> <span class="pre">example/image-classification/train_mnist.py</span> <span class="pre">--network</span> <span class="pre">lenet</span> <span class="pre">--gpus</span> <span class="pre">0</span></code> to test GPU training.</p>
-</div>
-</div>
-</div>
-</div><!-- Validation for GPU machines --><div class="linux">
-  <div class="python">
-    <div class="gpu"><div class="pip build-from-source"><p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><div class="docker"><p>Launch a NVIDIA Docker container with <code class="docutils literal"><span class="pre">mxnet/python:gpu</span></code> image and run example <em>MXNet</em> python program on the terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ nvidia-docker run -it mxnet/python:gpu bash <span class="c1"># Use sudo if you skip Step 2 in the installation instruction</span>
-
-<span class="c1"># Start a python terminal</span>
-root@4919c4f58cac:/# python
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Activate the virtualenv environment created for <em>MXNet</em>.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ <span class="nb">source</span> ~/mxnet/bin/activate
-</pre></div>
-</div>
-<p>After activating the environment, you should see the prompt as below.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="o">(</span>mxnet<span class="o">)</span>$
-</pre></div>
-</div>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-</div><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Linux Clean up -->
-<div class="linux">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and mxnet/python docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- MacOS Clean up -->
-<div class="macos">
-  <div class="python">
-    <div class="cpu"><div class="pip build-from-source"><p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="virtualenv"><p>Exit the Python terminal and Deactivate the virtualenv <em>MXNet</em> environment.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">(mxnet)$ deactivate</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><div class="docker"><p>Exit the Python terminal and then the docker container.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">root@4919c4f58cac:/# exit</span>
-</pre></div>
-</div>
-</div></div>
-</div>
-</div><!-- Validation for cloud installation --><div class="cloud"><p>Login to the cloud instance you launched, with pre-installed <em>MXNet</em>, following the guide by corresponding cloud provider.</p>
-<p>Start the python terminal.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>$ python
-</pre></div>
-</div>
-<!-- Example Python code for CPU --><div class="cpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">))</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">         [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-<p>Exit the Python terminal.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="nb">exit</span><span class="p">()</span>
-<span class="go">$</span>
-</pre></div>
-</div>
-</div><!-- Example Python code for CPU --><div class="gpu"><p>Run a short <em>MXNet</em> python program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">mxnet</span> <span class="kn">as</span> <span class="nn">mx</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">mx</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">ones</span><span class="p">((</span><span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span> <span class="n">mx</span><span class="o">.</span><span class="n">gpu</span><span class="p">())</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="mi">2</span> <span class="o">+</span> <span class="mi">1</span>
-<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span><span class="o">.</span><span class="n">asnumpy</span><span class="p">()</span>
-<span class="go">array([[ 3.,  3.,  3.],</span>
-<span class="go">       [ 3.,  3.,  3.]], dtype=float32)</span>
-</pre></div>
-</div>
-</div></div><!-- Example R code for CPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="cpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.cpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><!-- Example R code for GPU --><div class="linux macos windows">
-  <div class="r">
-    <div class="gpu"><p>Run a short <em>MXNet</em> R program to create a 2X3 matrix of ones <em>a</em> on a <em>GPU</em>, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3. We use <em>mx.gpu()</em>, to set <em>MXNet</em> context to be GPUs.</p>
-<div class="highlight-r"><div class="highlight"><pre><span></span><span class="kn">library</span><span class="p">(</span>mxnet<span class="p">)</span>
-a <span class="o">&lt;-</span> mx.nd.ones<span class="p">(</span><span class="kt">c</span><span class="p">(</span><span class="m">2</span><span class="p">,</span><span class="m">3</span><span class="p">),</span> ctx <span class="o">=</span> mx.gpu<span class="p">())</span>
-b <span class="o">&lt;-</span> a <span class="o">*</span> <span class="m">2</span> <span class="o">+</span> <span class="m">1</span>
-b
-</pre></div>
-</div>
-</div>
-</div>
-</div><div class="linux">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><div class="macos">
-  <div class="scala julia perl">
-    <div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div><!-- Windows MXNet Installation validation -->
-<div class="windows">
-  <div class="python">
-    <div class="cpu"><div class="build-from-source virtualenv docker">
-<br/>
-Will be available soon.
-</div></div>
-</div><div class="scala julia perl">
-<div class="cpu gpu"><p>Will be available soon.</p>
-</div>
-</div>
-</div>
-<!-- End Windows Installation validation --><div class="devices">
-  <div class="raspberry-pi"><p>Will be available soon.</p>
-</div>
-<div class="nvidia-jetson-tx2"><p>Will be available soon.</p>
-</div>
-</div></div>
-<div class="section" id="download-source-package">
-<span id="download-source-package"></span><h1>Download Source Package<a class="headerlink" href="#download-source-package" title="Permalink to this headline">¶</a></h1>
-</div>
-
-
-        </div>
-      </div>
-      
-      <div class="sphinxsidebar rightsidebar" role="navigation" aria-label="main navigation">
-        <div class="sphinxsidebarwrapper">
-  <h3><a href="../index.html">Table Of Contents</a></h3>
-  <ul>
-<li><a class="reference internal" href="#">Installing MXNet</a></li>
-<li><a class="reference internal" href="#validate-mxnet-installation">Validate MXNet Installation</a></li>
-<li><a class="reference internal" href="#download-source-package">Download Source Package</a></li>
-</ul>
-
-        </div>
-      </div>
-    </div><div class="footer">
-<div class="section-disclaimer">
-<div class="container">
-    <div>
-        <img src="https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/image/apache_incubator_logo.png" height=60>
-        <p>
-            Apache MXNet is an effort undergoing incubation at The Apache Software Foundation (ASF), <strong>sponsored by the <i>Apache Incubator</i></strong>. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-        </p>
-        <p>
-            "Copyright © 2017-2018, The Apache Software Foundation
-            Apache MXNet, MXNet, Apache, the Apache feather, and the Apache MXNet project logo are either registered trademarks or trademarks of the Apache Software Foundation."
-        </p>
-    </div>
-</div>
-</div>
-</div> <!-- pagename != index -->
-    </div>
-
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
-    <script type="text/javascript" src="../_static/js/sidebar.js"></script>
-    <script type="text/javascript" src="../_static/js/search.js"></script>
-    <script type="text/javascript" src="../_static/js/navbar.js"></script>
-    <script type="text/javascript" src="../_static/js/clipboard.min.js"></script>
-    <script type="text/javascript" src="../_static/js/copycode.js"></script>
-    <script type="text/javascript" src="../_static/js/page.js"></script>
-    <script type="text/javascript">
-        $('body').ready(function () {
-            $('body').css('visibility', 'visible');
-        });
-    </script>
-  </body>
-</html>
diff --git a/docs/build_version_doc/update_all_version.sh b/docs/build_version_doc/update_all_version.sh
index c6b75d0f440..bfd656f5ae8 100755
--- a/docs/build_version_doc/update_all_version.sh
+++ b/docs/build_version_doc/update_all_version.sh
@@ -92,11 +92,6 @@ function update_mxnet_css {
   echo "Update fixes complete.."
 }
 
-function update_install {
-    tag=$1
-    echo "Updating installation page for $1..."
-    cp "artifacts/$tag.index.html" "$built/versions/$tag/install/index.html"
-}
 
 
 # Update the specified tags with the Versions dropdown
@@ -114,7 +109,6 @@ for tag in $tag_list; do
         if [ -d $built/versions/$tag ]; then
             echo "The $tag is going to be updated with new css and install pages."
             update_mxnet_css $tag
-            update_install $tag
         fi
     fi
 
@@ -122,8 +116,6 @@ for tag in $tag_list; do
     if [ $tag == $tag_default ]
     then
         cp -a "$built/versions/$tag/." "$built"
-        echo "Updating default site's installation page."
-        cp "artifacts/$tag_default.index.html" "$built/install/index.html"
         echo "Copying .htaccess from default branch to root folder...."
         cp "artifacts/.htaccess"  "$built"
     else
diff --git a/docs/install/index.md b/docs/install/index.md
index b6a9a4e9ed2..4b966b62067 100644
--- a/docs/install/index.md
+++ b/docs/install/index.md
@@ -2,43 +2,57 @@
 
 Indicate your preferred configuration. Then, follow the customized commands to install *MXNet*.
 
+  <div class="dropdown">
+    <button class="btn current-version btn-primary dropdown-toggle" type="button" data-toggle="dropdown">v1.2.0
+    <span class="caret"></span></button>
+    <ul class="dropdown-menu opt-group">
+      <li class="opt active versions"><a href="#">v1.2.0</a></li>
+      <li class="opt versions"><a href="#">v1.1.0</a></li>
+      <li class="opt versions"><a href="#">v1.0.0</a></li>
+      <li class="opt versions"><a href="#">v0.12.1</a></li>
+      <li class="opt versions"><a href="#">v0.11.0</a></li>
+      <li class="opt versions"><a href="#">master</a></li>
+    </ul>
+  </div>
+
 <script type="text/javascript" src='../_static/js/options.js'></script>
 
 <!-- START - OS Menu -->
 
 <div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Linux</button>
-  <button type="button" class="btn btn-default opt">MacOS</button>
-  <button type="button" class="btn btn-default opt">Windows</button>
-  <button type="button" class="btn btn-default opt">Cloud</button>
-  <button type="button" class="btn btn-default opt">Devices</button>
+  <button type="button" class="btn btn-default opt active Devices">Linux</button>
+  <button type="button" class="btn btn-default opt Devices">MacOS</button>
+  <button type="button" class="btn btn-default opt Devices">Windows</button>
+  <button type="button" class="btn btn-default opt Devices">Cloud</button>
+  <button type="button" class="btn btn-default opt Devices">Devices</button>
 </div>
 
 <!-- START - Language Menu -->
 
 <div class="linux macos windows">
 <div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Python</button>
-  <button type="button" class="btn btn-default opt">Scala</button>
-  <button type="button" class="btn btn-default opt">R</button>
-  <button type="button" class="btn btn-default opt">Julia</button>
-  <button type="button" class="btn btn-default opt">Perl</button>
+  <button type="button" class="btn btn-default opt active languages">Python</button>
+  <button type="button" class="btn btn-default opt languages">Scala</button>
+  <button type="button" class="btn btn-default opt languages">R</button>
+  <button type="button" class="btn btn-default opt languages">Julia</button>
+  <button type="button" class="btn btn-default opt languages">Perl</button>
+  <button type="button" class="btn btn-default opt languages">Cpp</button>
 </div>
 </div>
 
 <!-- No CPU GPU for other Devices -->
 <div class="linux macos windows cloud">
 <div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">CPU</button>
-  <button type="button" class="btn btn-default opt">GPU</button>
+  <button type="button" class="btn btn-default processors opt active">CPU</button>
+  <button type="button" class="btn btn-default processors opt">GPU</button>
 </div>
 </div>
 
 <!-- other devices -->
 <div class="devices">
 <div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Raspberry Pi</button>
-  <button type="button" class="btn btn-default opt">NVIDIA Jetson TX2</button>
+  <button type="button" class="btn btn-default iots opt active">Raspberry Pi</button>
+  <button type="button" class="btn btn-default iots opt">NVIDIA Jetson TX2</button>
 </div>
 </div>
 
@@ -48,10 +62,10 @@ Indicate your preferred configuration. Then, follow the customized commands to i
 <div class="python">
 <div class="cpu gpu">
 <div class="btn-group opt-group" role="group">
-  <button type="button" class="btn btn-default opt active">Pip</button>
-  <button type="button" class="btn btn-default opt">Virtualenv</button>
-  <button type="button" class="btn btn-default opt">Docker</button>
-  <button type="button" class="btn btn-default opt">Build from Source</button>
+  <button type="button" class="btn btn-default environs opt active">Pip</button>
+  <button type="button" class="btn btn-default environs opt">Virtualenv</button>
+  <button type="button" class="btn btn-default environs opt">Docker</button>
+  <button type="button" class="btn btn-default environs opt">Build from Source</button>
 </div>
 </div>
 </div>
@@ -81,6 +95,8 @@ $ sudo apt-get install -y wget python gcc
 $ wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
 ```
 
+<div class="v1-2-0">
+
 **Step 2** Install MXNet with OpenBLAS acceleration.
 
 ```bash
@@ -100,6 +116,139 @@ pip install graphviz
 $ pip install mxnet-mkl
 ```
 
+</div> <!-- End of v1-2-0 -->
+
+<div class="v1-1-0">
+
+**Step 2** Install MXNet with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==1.1.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-mkl==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+<div class="v1-0-0">
+
+**Step 2** Install MXNet with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==1.0.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-mkl==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+
+**Step 2** Install MXNet with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==0.12.1
+```
+
+For MXNet 0.12.0 -
+
+```bash
+$ pip install mxnet==0.12.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-mkl==0.12.1
+```
+
+For MXNet 0.12.0 -
+
+```bash
+$ pip install mxnet-mkl==0.12.0
+```
+
+</div> <!-- End of v0-12-1-->
+
+<div class="v0-11-0">
+
+
+**Step 2** Install MXNet with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==0.11.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-mkl==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+
+**Step 2** Install MXNet with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet --pre
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-mkl --pre
+```
+
+</div> <!-- End of master-->
+
 </div> <!-- End of pip -->
 
 <div class="virtualenv">
@@ -140,12 +289,74 @@ Installing *MXNet* with pip requires a latest version of `pip`. Install the late
 $ pip install --upgrade pip
 ```
 
+<div class="v1-2-0">
+
 Install *MXNet* with OpenBLAS acceleration.
 
 ```bash
 $ pip install mxnet
 ```
 
+</div> <!-- End of v1-2-0-->
+
+<div class="v1-1-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+<div class="v1-0-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==0.12.1
+```
+
+For *MXNet* 0.12.0 -
+
+```bash
+$ pip install mxnet==0.12.0
+```
+
+</div> <!-- End of v0-12-1-->
+
+<div class="v0-11-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+$ pip install mxnet --pre
+```
+
+</div> <!-- End of master-->
+
+
 **Step 4**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
 ```bash
 sudo apt-get install graphviz
@@ -193,7 +404,6 @@ mxnet/python        latest              00d026968b3c        3 weeks ago
 
 </div> <!-- END of docker -->
 
-
 <div class="build-from-source">
 <br/>
 
@@ -301,6 +511,8 @@ $ sudo apt-get install -y wget python
 $ wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
 ```
 
+<div class="v1-2-0">
+
 **Step 2**  Install *MXNet* with GPU support using CUDA 9.0
 
 ```bash
@@ -320,6 +532,117 @@ pip install graphviz
 $ pip install mxnet-cu90mkl
 ```
 
+</div> <!-- End of v1-2-0-->
+
+
+<div class="v1-1-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0
+
+```bash
+$ pip install mxnet-cu90==1.1.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-cu90mkl==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+
+<div class="v1-0-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0
+
+```bash
+$ pip install mxnet-cu90==1.0.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-cu90mkl==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0
+
+```bash
+$ pip install mxnet-cu90==0.12.1
+```
+
+For *MXNet* 0.12.0 -
+
+```bash
+$ pip install mxnet-cu90==0.12.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-cu90mkl==0.12.1
+```
+
+For *MXNet* 0.12.0 -
+
+```bash
+$ pip install mxnet-cu90mkl==0.12.0
+```
+
+</div> <!-- End of v0-12-1-->
+
+
+<div class="v0-11-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0
+
+```bash
+$ pip install mxnet-cu90==0.11.0
+```
+
+**Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
+```bash
+sudo apt-get install graphviz
+pip install graphviz
+```
+
+**Step 4**  Validate the installation by running simple MXNet code described [here](#validate-mxnet-installation).
+
+**Experimental Choice** If You would like to install mxnet with Intel MKL, try the experimental pip package with MKL:
+```bash
+$ pip install mxnet-cu90mkl==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+
 </div> <!-- END of pip -->
 
 <div class="virtualenv">
@@ -361,12 +684,77 @@ Installing *MXNet* with pip requires a latest version of `pip`. Install the late
 (mxnet)$ pip install --upgrade pip
 ```
 
+
+<div class="v1-2-0">
+
 Install *MXNet* with GPU support using CUDA 9.0.
 
 ```bash
 (mxnet)$ pip install mxnet-cu90
 ```
 
+</div> <!-- End of v1-2-0-->
+
+
+<div class="v1-1-0">
+
+Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+
+<div class="v1-0-0">
+
+Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90==0.12.1
+```
+
+For *MXNet* 0.12.0 with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90==0.12.0
+``` 
+
+</div> <!-- End of v0-12-1-->
+
+
+<div class="v0-11-0">
+
+Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+(mxnet)$ pip install mxnet-cu90 --pre
+```
+
+</div> <!-- End of master-->
+
 **Step 4**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
 ```bash
 sudo apt-get install graphviz
@@ -633,6 +1021,12 @@ Follow the installation instructions [in this guide](./ubuntu_setup.md) to set u
 
 </div> <!-- End of cpu gpu -->
 </div> <!-- End of scala julia perl -->
+<div class="cpp">
+<div class="cpu gpu">
+<p> To build the C++ package, please refer to <a href="build_from_source.html#build-the-c-package">this guide</a>. </p>
+<br/>
+</div> <!-- End of cpu gpu -->
+</div> <!-- END - C++-->
 </div> <!-- END - Linux -->
 
 
@@ -668,9 +1062,74 @@ $ pip install --upgrade pip
 $ pip install --upgrade setuptools
 ```
 
+<div class="v1-2-0">
+
+Then use pip to install MXNet:
+
 ```bash
 $ pip install mxnet
 ```
+</div> <!-- End of v1-2-0 -->
+
+
+<div class="v1-1-0">
+
+Then use pip to install MXNet:
+
+```bash
+$ pip install mxnet==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+
+<div class="v1-0-0">
+
+Then use pip to install MXNet:
+
+```bash
+$ pip install mxnet==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+<div class="v0-12-1">
+
+Then use pip to install MXNet:
+
+```bash
+$ pip install mxnet=0.12.1
+```
+
+For MXNet 0.12.0 -
+
+```bash
+$ pip install mxnet=0.12.0
+```
+
+
+</div> <!-- End of v0-12-1-->
+
+
+<div class="v0-11-0">
+
+Then use pip to install MXNet:
+
+```bash
+$ pip install mxnet==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+Then use pip to install MXNet:
+
+```bash
+$ pip install mxnet --pre
+```
+
+</div> <!-- End of master-->
 
 **Step 3**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
 ```bash
@@ -732,12 +1191,75 @@ Installing *MXNet* with pip requires a latest version of `pip`. Install the late
 (mxnet)$ pip install --upgrade setuptools
 ```
 
+<div class="v1-2-0">
+
 Install *MXNet* with OpenBLAS acceleration.
 
 ```bash
 (mxnet)$ pip install mxnet
 ```
 
+</div> <!-- End of v1-2-0-->
+
+<div class="v1-1-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+(mxnet)$ pip install mxnet==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+<div class="v1-0-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+(mxnet)$ pip install mxnet==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+(mxnet)$ pip install mxnet==0.12.1
+```
+
+For *MXNet* 0.12.0 -
+
+```bash
+(mxnet)$ pip install mxnet==0.12.0
+```
+
+
+</div> <!-- End of v0-12-1-->
+
+<div class="v0-11-0">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+(mxnet)$ pip install mxnet==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+Install *MXNet* with OpenBLAS acceleration.
+
+```bash
+(mxnet)$ pip install mxnet --pre
+```
+
+</div> <!-- End of master-->
+
+
 **Step 5**  Install [Graphviz](http://www.graphviz.org/). (Optional, needed for graph visualization using `mxnet.viz` package).
 ```bash
 $ brew install graphviz
@@ -932,6 +1454,10 @@ Follow the installation instructions [in this guide](./osx_setup.md) to set up M
 
 </div> <!-- End of cpu gpu -->
 </div> <!-- End of scala julia perl -->
+<div class="cpp">
+<p>To build the C++ package, please refer to <a href="build_from_source.html#build-the-c-package">this guide</a>.</p>
+<br/>
+</div>
 </div> <!-- END - Mac OS -->
 
 
@@ -953,12 +1479,76 @@ Follow the installation instructions [in this guide](./osx_setup.md) to set up M
 
 [Anaconda](https://www.anaconda.com/download/) is recommended.
 
+<div class="v1-2-0">
+
 **Step 2**  Install *MXNet*.
 
 ```bash
 $ pip install mxnet
 ```
 
+</div> <!-- End of v1-2-0-->
+
+<div class="v1-1-0">
+
+**Step 2**  Install *MXNet*.
+
+```bash
+$ pip install mxnet==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+<div class="v1-0-0">
+
+**Step 2**  Install *MXNet*.
+
+```bash
+$ pip install mxnet==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+
+<div class="v0-12-1">
+
+**Step 2**  Install *MXNet*.
+
+```bash
+$ pip install mxnet==0.12.1
+```
+
+For *MXNet* 0.12.0 -
+
+```bash
+$ pip install mxnet==0.12.0
+```
+
+
+</div> <!-- End of v0-12-1-->
+
+<div class="v0-11-0">
+
+**Step 2**  Install *MXNet*.
+
+```bash
+$ pip install mxnet==0.11.0
+```
+
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+**Step 2**  Install *MXNet*.
+
+```bash
+$ pip install mxnet --pre
+```
+
+</div> <!-- End of master-->
+
+
 </div> <!-- End of pip -->
 
 
@@ -979,12 +1569,73 @@ Follow the installation instructions [in this guide](./windows_setup.md) to set
 
 [Anaconda](https://www.anaconda.com/download/) is recommended.
 
+
+<div class="v1-2-0">
+
 **Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
 
 ```bash
 $ pip install mxnet-cu90
 ```
 
+</div> <!-- End of v1-2-0-->
+
+<div class="v1-1-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90==1.1.0
+```
+
+</div> <!-- End of v1-1-0-->
+
+<div class="v1-0-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90==1.0.0
+```
+
+</div> <!-- End of v1-0-0-->
+
+<div class="v0-12-1">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90==0.12.1
+```
+
+Install *MXNet* 0.12.0 with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90==0.12.0
+```
+
+</div> <!-- End of v0-12-1-->
+
+<div class="v0-11-0">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90==0.11.0
+```
+
+</div> <!-- End of v0-11-0-->
+
+<div class="master">
+
+**Step 2**  Install *MXNet* with GPU support using CUDA 9.0.
+
+```bash
+$ pip install mxnet-cu90 --pre
+```
+
+</div> <!-- End of master-->
+
 Refer to [#8671](https://github.com/apache/incubator-mxnet/issues/8671) for status on CUDA 9.1 support.
 
 </div>
@@ -1122,6 +1773,12 @@ Follow the installation instructions [in this guide](./windows_setup.md) to set
 
 </div> <!-- End of cpu gpu -->
 </div> <!-- End of scala julia perl -->
+<div class="cpp">
+<div class="cpu gpu">
+<p> To build the C++ package, please refer to <a href="build_from_source.html#build-the-c-package">this guide</a>. </p>
+<br/>
+</div> <!-- End of cpu gpu -->
+</div> <!-- End of C++>
 </div> <!-- End of Windows -->
 
 
@@ -1684,7 +2341,7 @@ b
 
 
 <div class="linux">
-  <div class="scala julia perl">
+  <div class="scala julia perl cpp">
     <div class="cpu gpu">
 
 Will be available soon.
@@ -1694,7 +2351,7 @@ Will be available soon.
 </div>
 
 <div class="macos">
-  <div class="scala julia perl">
+  <div class="scala julia perl cpp">
     <div class="cpu gpu">
 
 Will be available soon.
@@ -1716,7 +2373,7 @@ Will be available soon.
 </div>
 </div>
 
-<div class="scala julia perl">
+<div class="scala julia perl cpp">
 <div class="cpu gpu">
 
 Will be available soon.
diff --git a/example/image-classification/common/fit.py b/example/image-classification/common/fit.py
index f5427feae2f..ca1c09ab08a 100755
--- a/example/image-classification/common/fit.py
+++ b/example/image-classification/common/fit.py
@@ -23,13 +23,13 @@
 import math
 import mxnet as mx
 
+def get_epoch_size(args, kv):
+    return math.ceil(int(args.num_examples / kv.num_workers) / args.batch_size)
 
 def _get_lr_scheduler(args, kv):
     if 'lr_factor' not in args or args.lr_factor >= 1:
         return (args.lr, None)
-    epoch_size = args.num_examples / args.batch_size
-    if 'dist' in args.kv_store:
-        epoch_size /= kv.num_workers
+    epoch_size = get_epoch_size(args, kv)
     begin_epoch = args.load_epoch if args.load_epoch else 0
     if 'pow' in args.lr_step_epochs:
         lr = args.lr
@@ -48,8 +48,10 @@ def _get_lr_scheduler(args, kv):
 
     steps = [epoch_size * (x - begin_epoch)
              for x in step_epochs if x - begin_epoch > 0]
-    return (lr, mx.lr_scheduler.MultiFactorScheduler(step=steps, factor=args.lr_factor))
-
+    if steps:
+        return (lr, mx.lr_scheduler.MultiFactorScheduler(step=steps, factor=args.lr_factor))
+    else:
+        return (lr, None)
 
 def _load_model(args, rank=0):
     if 'load_epoch' not in args or args.load_epoch is None:
@@ -153,14 +155,27 @@ def fit(args, network, data_loader, **kwargs):
     head = '%(asctime)-15s Node[' + str(kv.rank) + '] %(message)s'
     logging.basicConfig(level=logging.DEBUG, format=head)
     logging.info('start with arguments %s', args)
+    
+    epoch_size = get_epoch_size(args, kv)
 
     # data iterators
     (train, val) = data_loader(args, kv)
+    if 'dist' in args.kv_store and not 'async' in args.kv_store:
+        logging.info('Resizing training data to %d batches per machine', epoch_size)
+        # resize train iter to ensure each machine has same number of batches per epoch
+        # if not, dist_sync can hang at the end with one machine waiting for other machines
+        train = mx.io.ResizeIter(train, epoch_size)
+
     if args.test_io:
         tic = time.time()
         for i, batch in enumerate(train):
-            for j in batch.data:
-                j.wait_to_read()
+            if isinstance(batch, list):
+                for b in batch:
+                    for j in b.data:
+                        j.wait_to_read()
+            else:
+                for j in batch.data:
+                    j.wait_to_read()
             if (i + 1) % args.disp_batches == 0:
                 logging.info('Batch [%d]\tSpeed: %.2f samples/sec', i,
                              args.disp_batches * args.batch_size / (time.time() - tic))
@@ -211,11 +226,7 @@ def fit(args, network, data_loader, **kwargs):
     # A limited number of optimizers have a warmup period
     has_warmup = {'lbsgd', 'lbnag'}
     if args.optimizer in has_warmup:
-        if 'dist' in args.kv_store:
-            nworkers = kv.num_workers
-        else:
-            nworkers = 1
-        epoch_size = args.num_examples / args.batch_size / nworkers
+        nworkers = kv.num_workers
         if epoch_size < 1:
             epoch_size = 1
         macrobatch_size = args.macrobatch_size
diff --git a/example/image-classification/predict-cpp/CMakeLists.txt b/example/image-classification/predict-cpp/CMakeLists.txt
index a2f52b9df3a..c42d1917b76 100644
--- a/example/image-classification/predict-cpp/CMakeLists.txt
+++ b/example/image-classification/predict-cpp/CMakeLists.txt
@@ -1,7 +1,7 @@
 # Check OpenCV
-if(NOT USE_OPENCV OR NOT OpenCV_FOUND)
+if(NOT USE_OPENCV OR NOT OpenCV_FOUND OR OpenCV_VERSION_MAJOR LESS 3)
   message(WARNING "\
-OpenCV should be enabled and found to build image classification example, skipping...")
+OpenCV version >= 3 should be enabled and found to build image classification example, skipping...")
   return()
 endif()
 
diff --git a/example/ssd/README.md b/example/ssd/README.md
index 55387c5fd2d..cc034689c7b 100644
--- a/example/ssd/README.md
+++ b/example/ssd/README.md
@@ -17,7 +17,8 @@ remarkable traits of MXNet.
 Due to the permission issue, this example is maintained in this [repository](https://github.com/zhreshold/mxnet-ssd) separately. You can use the link regarding specific per example [issues](https://github.com/zhreshold/mxnet-ssd/issues).
 
 ### What's new
-* Added live camera capture and detection display (run with --camera flag)
+* Added live camera capture and detection display (run with --camera flag). Example:
+    `./demo.py --camera --cpu --frame-resize 0.5`
 * Added multiple trained models.
 * Added a much simpler way to compose network from mainstream classification networks (resnet, inception...) and [Guide](symbol/README.md).
 * Update to the latest version according to caffe version, with 5% mAP increase.
diff --git a/example/ssd/dataset/cv2Iterator.py b/example/ssd/dataset/cv2Iterator.py
index 469faeac828..0af8c3272fa 100644
--- a/example/ssd/dataset/cv2Iterator.py
+++ b/example/ssd/dataset/cv2Iterator.py
@@ -26,10 +26,19 @@ class CameraIterator():
     """
     def __init__(self, capture=cv2.VideoCapture(0), frame_resize=None):
         self._capture = capture
-        self._frame_resize = frame_resize
+        self._frame_resize = None
         if frame_resize:
-            assert isinstance(frame_resize, tuple) and (len(tuple) == 2), "frame_resize should be a tuple of (x,y)"
-            self._frame_shape = (1, 3, frame_resize[0], frame_resize[1])
+            if isinstance(frame_resize, (tuple, list)) and (len(frame_resize) == 2):
+                self._frame_resize = tuple(map(int, frame_resize))
+                self._frame_shape = (1, 3, self._frame_resize[0], self._frame_resize[1])
+            elif isinstance(frame_resize, float):
+                width = int(self._capture.get(cv2.CAP_PROP_FRAME_WIDTH)*frame_resize)
+                height = int(self._capture.get(cv2.CAP_PROP_FRAME_HEIGHT)*frame_resize)
+                self._frame_shape = (1, 3, width, height)
+                self._frame_resize = (width, height)
+            else:
+                assert False, "frame_resize should be a tuple of (x,y) pixels "
+                "or a float setting the scaling factor"
         else:
             self._frame_shape = (1, 3,
                 int(self._capture.get(cv2.CAP_PROP_FRAME_WIDTH)),
diff --git a/example/ssd/demo.py b/example/ssd/demo.py
index 4ae8b350742..e8194ab8ead 100755
--- a/example/ssd/demo.py
+++ b/example/ssd/demo.py
@@ -109,6 +109,8 @@ def parse_args():
                         help='string of comma separated names, or text filename')
     parser.add_argument('--camera', action='store_true',
                         help="use camera for image capturing")
+    parser.add_argument('--frame-resize', type=str, default=None,
+                        help="resize camera frame to x,y pixels or a float scaling factor")
     args = parser.parse_args()
     return args
 
@@ -127,6 +129,15 @@ def parse_class_names(class_names):
         raise RuntimeError("No valid class_name provided...")
     return class_names
 
+def parse_frame_resize(x):
+    if not x:
+        return x
+    x = list(map(float, x.strip().split(',')))
+    assert len(x) >= 1 and len(x) <= 2, "frame_resize should be a float scaling factor or a tuple of w,h pixels"
+    if len(x) == 1:
+        x = x[0]
+    return x
+
 def parse_data_shape(data_shape_str):
     """Parse string to tuple or int"""
     ds = data_shape_str.strip().split(',')
@@ -160,7 +171,7 @@ def network_path(prefix, network, data_shape):
 def run_camera(args,ctx):
     assert args.batch_size == 1, "only batch size of 1 is supported"
     logging.info("Detection threshold is {}".format(args.thresh))
-    iter = CameraIterator()
+    iter = CameraIterator(frame_resize=parse_frame_resize(args.frame_resize))
     class_names = parse_class_names(args.class_names)
     mean_pixels = (args.mean_r, args.mean_g, args.mean_b)
     data_shape = int(args.data_shape)
diff --git a/include/mxnet/kvstore.h b/include/mxnet/kvstore.h
index 4e99a9c861f..9e92207fb8d 100644
--- a/include/mxnet/kvstore.h
+++ b/include/mxnet/kvstore.h
@@ -229,6 +229,7 @@ class KVStore {
     CHECK(updater) << "invalid updater";
     updater_ = updater;
   }
+
   /*!
    * \brief set an updater with string keys
    *
diff --git a/make/config.mk b/make/config.mk
index dd67c33cc9e..b65f77c605f 100644
--- a/make/config.mk
+++ b/make/config.mk
@@ -37,9 +37,15 @@
 # choice of compiler
 #--------------------
 
+ifndef CC
 export CC = gcc
+endif
+ifndef CXX
 export CXX = g++
+endif
+ifndef NVCC
 export NVCC = nvcc
+endif
 
 # whether compile with options for MXNet developer
 DEV = 0
diff --git a/make/crosscompile.jetson.mk b/make/crosscompile.jetson.mk
index acc9c4a5a8a..5bb4961bf01 100644
--- a/make/crosscompile.jetson.mk
+++ b/make/crosscompile.jetson.mk
@@ -57,10 +57,10 @@ DEBUG = 0
 USE_SIGNAL_HANDLER = 1
 
 # the additional link flags you want to add
-ADD_LDFLAGS =
+ADD_LDFLAGS = -L${CROSS_ROOT}/lib
 
 # the additional compile flags you want to add
-ADD_CFLAGS =
+ADD_CFLAGS = -I${CROSS_ROOT}/include
 
 #---------------------------------------------
 # matrix computation libraries for CPU/GPU
diff --git a/python/mxnet/executor_manager.py b/python/mxnet/executor_manager.py
index 33c6c976271..825aa76e43c 100644
--- a/python/mxnet/executor_manager.py
+++ b/python/mxnet/executor_manager.py
@@ -286,10 +286,13 @@ def backward(self):
         for texec in self.train_execs:
             texec.backward()
 
-    def update_metric(self, metric, labels):
+    def update_metric(self, metric, labels, pre_sliced=False):
         """Update evaluation metric with label and current outputs."""
-        for texec, islice in zip(self.train_execs, self.slices):
-            labels_slice = [label[islice] for label in labels]
+        for current_exec, (texec, islice) in enumerate(zip(self.train_execs, self.slices)):
+            if not pre_sliced:
+                labels_slice = [label[islice] for label in labels]
+            else:
+                labels_slice = labels[current_exec]
             metric.update(labels_slice, texec.outputs)
 
 class DataParallelExecutorManager(object):
@@ -436,6 +439,6 @@ def backward(self):
         """Run backward on the current executor."""
         self.curr_execgrp.backward()
 
-    def update_metric(self, metric, labels):
+    def update_metric(self, metric, labels, pre_sliced=False):
         """Update metric with the current executor."""
-        self.curr_execgrp.update_metric(metric, labels)
+        self.curr_execgrp.update_metric(metric, labels, pre_sliced)
diff --git a/python/mxnet/gluon/contrib/nn/basic_layers.py b/python/mxnet/gluon/contrib/nn/basic_layers.py
index eccdf18c1bb..1edef1476ee 100644
--- a/python/mxnet/gluon/contrib/nn/basic_layers.py
+++ b/python/mxnet/gluon/contrib/nn/basic_layers.py
@@ -18,10 +18,10 @@
 # coding: utf-8
 # pylint: disable= arguments-differ
 """Custom neural network layers in model_zoo."""
-__all__ = ['Concurrent', 'HybridConcurrent', 'Identity']
+__all__ = ['Concurrent', 'HybridConcurrent', 'Identity', 'SparseEmbedding']
 
 from .... import nd
-from ...block import HybridBlock
+from ...block import HybridBlock, Block
 from ...nn import Sequential, HybridSequential
 
 class Concurrent(Sequential):
@@ -110,3 +110,44 @@ def __init__(self, prefix=None, params=None):
 
     def hybrid_forward(self, F, x):
         return x
+
+class SparseEmbedding(Block):
+    r"""Turns non-negative integers (indexes/tokens) into dense vectors
+    of fixed size. eg. [4, 20] -> [[0.25, 0.1], [0.6, -0.2]]
+
+    This SparseBlock is designed for distributed training with extremely large
+    input dimension. Both weight and gradient w.r.t. weight are `RowSparseNDArray`.
+
+    Parameters
+    ----------
+    input_dim : int
+        Size of the vocabulary, i.e. maximum integer index + 1.
+    output_dim : int
+        Dimension of the dense embedding.
+    dtype : str or np.dtype, default 'float32'
+        Data type of output embeddings.
+    weight_initializer : Initializer
+        Initializer for the `embeddings` matrix.
+
+    Inputs:
+        - **data**: (N-1)-D tensor with shape: `(x1, x2, ..., xN-1)`.
+    Output:
+        - **out**: N-D tensor with shape: `(x1, x2, ..., xN-1, output_dim)`.
+    """
+    def __init__(self, input_dim, output_dim, dtype='float32',
+                 weight_initializer=None, **kwargs):
+        super(SparseEmbedding, self).__init__(**kwargs)
+        self._kwargs = {'input_dim': input_dim, 'output_dim': output_dim,
+                        'dtype': dtype, 'sparse_grad': True}
+        self.weight = self.params.get('weight', shape=(input_dim, output_dim),
+                                      init=weight_initializer, dtype=dtype,
+                                      grad_stype='row_sparse', stype='row_sparse')
+
+    def forward(self, x):
+        weight = self.weight.row_sparse_data(x)
+        return nd.Embedding(x, weight, name='fwd', **self._kwargs)
+
+    def __repr__(self):
+        s = '{block_name}({input_dim} -> {output_dim}, {dtype})'
+        return s.format(block_name=self.__class__.__name__,
+                        **self._kwargs)
diff --git a/python/mxnet/gluon/utils.py b/python/mxnet/gluon/utils.py
index 818aa3d2a3b..06b91fadcee 100644
--- a/python/mxnet/gluon/utils.py
+++ b/python/mxnet/gluon/utils.py
@@ -171,7 +171,7 @@ def check_sha1(filename, sha1_hash):
     return sha1.hexdigest() == sha1_hash
 
 
-def download(url, path=None, overwrite=False, sha1_hash=None):
+def download(url, path=None, overwrite=False, sha1_hash=None, retries=5):
     """Download an given URL
 
     Parameters
@@ -186,6 +186,8 @@ def download(url, path=None, overwrite=False, sha1_hash=None):
     sha1_hash : str, optional
         Expected sha1 hash in hexadecimal digits. Will ignore existing file when hash is specified
         but doesn't match.
+    retries : integer, default 5
+        The number of times to attempt the download in case of failure or non 200 return codes
 
     Returns
     -------
@@ -200,26 +202,37 @@ def download(url, path=None, overwrite=False, sha1_hash=None):
             fname = os.path.join(path, url.split('/')[-1])
         else:
             fname = path
+    assert retries >= 0, "Number of retries should be at least 0"
 
     if overwrite or not os.path.exists(fname) or (sha1_hash and not check_sha1(fname, sha1_hash)):
         dirname = os.path.dirname(os.path.abspath(os.path.expanduser(fname)))
         if not os.path.exists(dirname):
             os.makedirs(dirname)
-
-        print('Downloading %s from %s...'%(fname, url))
-        r = requests.get(url, stream=True)
-        if r.status_code != 200:
-            raise RuntimeError("Failed downloading url %s"%url)
-        with open(fname, 'wb') as f:
-            for chunk in r.iter_content(chunk_size=1024):
-                if chunk: # filter out keep-alive new chunks
-                    f.write(chunk)
-
-        if sha1_hash and not check_sha1(fname, sha1_hash):
-            raise UserWarning('File {} is downloaded but the content hash does not match. ' \
-                              'The repo may be outdated or download may be incomplete. ' \
-                              'If the "repo_url" is overridden, consider switching to ' \
-                              'the default repo.'.format(fname))
+        while retries+1 > 0:
+            # Disable pyling too broad Exception
+            # pylint: disable=W0703
+            try:
+                print('Downloading %s from %s...'%(fname, url))
+                r = requests.get(url, stream=True)
+                if r.status_code != 200:
+                    raise RuntimeError("Failed downloading url %s"%url)
+                with open(fname, 'wb') as f:
+                    for chunk in r.iter_content(chunk_size=1024):
+                        if chunk: # filter out keep-alive new chunks
+                            f.write(chunk)
+                if sha1_hash and not check_sha1(fname, sha1_hash):
+                    raise UserWarning('File {} is downloaded but the content hash does not match.'\
+                                      ' The repo may be outdated or download may be incomplete. '\
+                                      'If the "repo_url" is overridden, consider switching to '\
+                                      'the default repo.'.format(fname))
+                break
+            except Exception as e:
+                retries -= 1
+                if retries <= 0:
+                    raise e
+                else:
+                    print("download failed, retrying, {} attempt{} left"
+                          .format(retries, 's' if retries > 1 else ''))
 
     return fname
 
diff --git a/python/mxnet/module/base_module.py b/python/mxnet/module/base_module.py
index 8f5fd4ab854..4b7355ffa92 100644
--- a/python/mxnet/module/base_module.py
+++ b/python/mxnet/module/base_module.py
@@ -146,7 +146,8 @@ class BaseModule(object):
         - `get_outputs()`: get outputs of the previous forward operation.
         - `get_input_grads()`: get the gradients with respect to the inputs computed
           in the previous backward operation.
-        - `update_metric(metric, labels)`: update performance metric for the previous forward
+        - `update_metric(metric, labels, pre_sliced=False)`: update performance metric
+          for the previous forward
           computed results.
 
     - other properties (mostly for backward compatibility)
@@ -249,7 +250,10 @@ def score(self, eval_data, eval_metric, num_batch=None, batch_end_callback=None,
                 break
             self.prepare(eval_batch, sparse_row_id_fn=sparse_row_id_fn)
             self.forward(eval_batch, is_train=False)
-            self.update_metric(eval_metric, eval_batch.label)
+            if isinstance(eval_batch, list):
+                self.update_metric(eval_metric, [eb.label for eb in eval_batch], pre_sliced=True)
+            else:
+                self.update_metric(eval_metric, eval_batch.label)
 
             if batch_end_callback is not None:
                 batch_end_params = BatchEndParam(epoch=epoch,
@@ -517,7 +521,12 @@ def fit(self, train_data, eval_data=None, eval_metric='acc',
                 except StopIteration:
                     end_of_batch = True
 
-                self.update_metric(eval_metric, data_batch.label)
+                if isinstance(data_batch, list):
+                    self.update_metric(eval_metric,
+                                       [db.label for db in data_batch],
+                                       pre_sliced=True)
+                else:
+                    self.update_metric(eval_metric, data_batch.label)
 
                 if monitor is not None:
                     monitor.toc_print()
@@ -943,7 +952,7 @@ def update(self):
         """
         raise NotImplementedError()
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced=False):
         """Evaluates and accumulates evaluation metric on outputs of the last forward
         computation.
 
@@ -951,8 +960,10 @@ def update_metric(self, eval_metric, labels):
         ----------
         eval_metric : EvalMetric
             Evaluation metric to use.
-        labels : list of NDArray
-            Typically `data_batch.label`.
+        labels : list of NDArray if `pre_sliced` parameter is set to `False`,
+            list of lists of NDArray otherwise. Typically `data_batch.label`.
+        pre_sliced: bool
+            Whether the labels are already sliced per device (default: False).
 
         Examples
         --------
diff --git a/python/mxnet/module/bucketing_module.py b/python/mxnet/module/bucketing_module.py
index 18cec29b409..9b568618566 100644
--- a/python/mxnet/module/bucketing_module.py
+++ b/python/mxnet/module/bucketing_module.py
@@ -517,7 +517,7 @@ def get_input_grads(self, merge_multi_context=True):
         assert self.binded and self.params_initialized and self.inputs_need_grad
         return self._curr_module.get_input_grads(merge_multi_context=merge_multi_context)
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced=False):
         """Evaluates and accumulates evaluation metric on outputs of the last forward computation.
 
         Parameters
@@ -527,7 +527,7 @@ def update_metric(self, eval_metric, labels):
             Typically ``data_batch.label``.
         """
         assert self.binded and self.params_initialized
-        self._curr_module.update_metric(eval_metric, labels)
+        self._curr_module.update_metric(eval_metric, labels, pre_sliced)
 
     @property
     def symbol(self):
diff --git a/python/mxnet/module/executor_group.py b/python/mxnet/module/executor_group.py
index 32400c11dbc..5d8e95077c4 100755
--- a/python/mxnet/module/executor_group.py
+++ b/python/mxnet/module/executor_group.py
@@ -64,12 +64,26 @@ def _load_general(data, targets, major_axis):
 
 def _load_data(batch, targets, major_axis):
     """Load data into sliced arrays."""
-    _load_general(batch.data, targets, major_axis)
+    if isinstance(batch, list):
+        new_batch = []
+        for i in range(len(targets)):
+            new_batch.append([b.data[i] for b in batch])
+        new_targets = [[dst for _, dst in d_target] for d_target in targets]
+        _load_general(new_batch, new_targets, major_axis)
+    else:
+        _load_general(batch.data, targets, major_axis)
 
 
 def _load_label(batch, targets, major_axis):
     """Load label into sliced arrays."""
-    _load_general(batch.label, targets, major_axis)
+    if isinstance(batch, list):
+        new_batch = []
+        for i in range(len(targets)):
+            new_batch.append([b.label[i] for b in batch])
+        new_targets = [[dst for _, dst in d_target] for d_target in targets]
+        _load_general(new_batch, new_targets, major_axis)
+    else:
+        _load_general(batch.label, targets, major_axis)
 
 
 def _merge_multi_context(outputs, major_axis):
@@ -437,8 +451,12 @@ def forward(self, data_batch, is_train=None):
         if is_train is None:
             is_train = self.for_training
 
-        if self.label_arrays is not None and data_batch.label:
-            _load_label(data_batch, self.label_arrays, self.label_layouts)
+        if isinstance(data_batch, list):
+            if self.label_arrays is not None and data_batch is not None and data_batch[0].label:
+                _load_label(data_batch, self.label_arrays, self.label_layouts)
+        else:
+            if self.label_arrays is not None and data_batch.label:
+                _load_label(data_batch, self.label_arrays, self.label_layouts)
 
         for exec_ in self.execs:
             exec_.forward(is_train=is_train)
@@ -580,7 +598,7 @@ def backward(self, out_grads=None):
                     out_grads_slice.append(grad.copyto(self.contexts[i]))
             exec_.backward(out_grads=out_grads_slice)
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced):
         """Accumulate the performance according to `eval_metric` on all devices
         by comparing outputs from [begin, end) to labels. By default use all
         outputs.
@@ -591,25 +609,30 @@ def update_metric(self, eval_metric, labels):
             The metric used for evaluation.
         labels : list of NDArray
             Typically comes from `label` of a `DataBatch`.
+        pre_sliced : bool
+            Whether labels are already sliced.
         begin : int
             Starting index of used outputs.
         end : int or None
             Ending index of used outputs.
         """
-        for texec, islice in zip(self.execs, self.slices):
-            labels_slice = []
-            for label, axis in zip(labels, self.label_layouts):
-                if axis == 0:
-                    # slicing NDArray along axis 0 can avoid copying
-                    labels_slice.append(label[islice])
-                elif axis > 0:
-                    # pylint: disable=no-member
-                    label_my_slice = nd.slice_axis(label, axis=axis, begin=islice.start,
-                                                   end=islice.stop).as_in_context(label.context)
-                    # pylint: enable=no-member
-                    labels_slice.append(label_my_slice)
-                else:
-                    labels_slice.append(label)
+        for current_exec, (texec, islice) in enumerate(zip(self.execs, self.slices)):
+            if not pre_sliced:
+                labels_slice = []
+                for label, axis in zip(labels, self.label_layouts):
+                    if axis == 0:
+                        # slicing NDArray along axis 0 can avoid copying
+                        labels_slice.append(label[islice])
+                    elif axis > 0:
+                        # pylint: disable=no-member
+                        label_my_slice = nd.slice_axis(label, axis=axis, begin=islice.start,
+                                                       end=islice.stop).as_in_context(label.context)
+                        # pylint: enable=no-member
+                        labels_slice.append(label_my_slice)
+                    else:
+                        labels_slice.append(label)
+            else:
+                labels_slice = labels[current_exec]
 
             labels_ = OrderedDict(zip(self.label_names, labels_slice))
             preds = OrderedDict(zip(self.output_names, texec.outputs))
diff --git a/python/mxnet/module/module.py b/python/mxnet/module/module.py
index a05c3a31cd2..4d77e0e4d8c 100644
--- a/python/mxnet/module/module.py
+++ b/python/mxnet/module/module.py
@@ -590,7 +590,19 @@ def forward(self, data_batch, is_train=None):
         assert self.binded and self.params_initialized
 
         curr_data_shapes = tuple(i.shape for i in self._data_shapes)
-        new_data_shapes = tuple(i.shape for i in data_batch.data)
+        if isinstance(data_batch, list):
+            assert data_batch is not None, "Encountered empty data batch"
+            new_data_shapes = []
+            for i in range(len(data_batch[0].data)):
+                shape = data_batch[0].data[i].shape
+                for db in data_batch:
+                    assert shape == db.data[i].shape, \
+                        "All data batches in a list need to have the same shape"
+                new_batch_size = len(data_batch) * shape[0]
+                new_data_shapes.append((new_batch_size,) + shape[1:])
+            new_data_shapes = tuple(new_data_shapes)
+        else:
+            new_data_shapes = tuple(i.shape for i in data_batch.data)
 
         if curr_data_shapes != new_data_shapes:
             if hasattr(data_batch, "provide_data") and data_batch.provide_data:
@@ -741,7 +753,7 @@ def set_states(self, states=None, value=None):
         assert self.binded and self.params_initialized
         self._exec_group.set_states(states, value)
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced=False):
         """Evaluates and accumulates evaluation metric on outputs of the last forward computation.
 
         See Also
@@ -751,10 +763,13 @@ def update_metric(self, eval_metric, labels):
         Parameters
         ----------
         eval_metric : EvalMetric
-        labels : list of NDArray
-            Typically ``data_batch.label``.
+            Evaluation metric to use.
+        labels : list of NDArray if `pre_sliced` parameter is set to `False`,
+            list of lists of NDArray otherwise. Typically `data_batch.label`.
+        pre_sliced: bool
+            Whether the labels are already sliced per device (default: False).
         """
-        self._exec_group.update_metric(eval_metric, labels)
+        self._exec_group.update_metric(eval_metric, labels, pre_sliced)
 
     def _sync_params_from_devices(self):
         """Synchronizes parameters from devices to CPU. This function should be called after
diff --git a/python/mxnet/module/python_module.py b/python/mxnet/module/python_module.py
index 2d4343c80c7..886851efc30 100644
--- a/python/mxnet/module/python_module.py
+++ b/python/mxnet/module/python_module.py
@@ -138,7 +138,7 @@ def update(self):
         """
         pass
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced=False):
         """Evaluates and accumulates evaluation metric on outputs of the last forward computation.
         Subclass should override this method if needed.
 
@@ -153,6 +153,9 @@ def update_metric(self, eval_metric, labels):
             # function or predictions, so just ignore this call
             return
 
+        if pre_sliced:
+            raise RuntimeError("PythonModule does not support presliced labels")
+
         # by default we expect our outputs are some scores that could be evaluated
         eval_metric.update(labels, self.get_outputs())
 
diff --git a/python/mxnet/module/sequential_module.py b/python/mxnet/module/sequential_module.py
index 642a398c08d..8d563a4def7 100644
--- a/python/mxnet/module/sequential_module.py
+++ b/python/mxnet/module/sequential_module.py
@@ -416,7 +416,7 @@ def get_input_grads(self, merge_multi_context=True):
         assert self.binded and self.params_initialized and self.inputs_need_grad
         return self._modules[0].get_input_grads(merge_multi_context=merge_multi_context)
 
-    def update_metric(self, eval_metric, labels):
+    def update_metric(self, eval_metric, labels, pre_sliced=False):
         """Evaluates and accumulates evaluation metric on outputs of the last forward computation.
 
         Parameters
@@ -430,7 +430,7 @@ def update_metric(self, eval_metric, labels):
         for meta, module in zip(self._metas, self._modules):
             if SequentialModule.META_TAKE_LABELS in meta and \
                     meta[SequentialModule.META_TAKE_LABELS]:
-                module.update_metric(eval_metric, labels)
+                module.update_metric(eval_metric, labels, pre_sliced)
 
     def install_monitor(self, mon):
         """Installs monitor on all executors."""
diff --git a/python/mxnet/test_utils.py b/python/mxnet/test_utils.py
index bcdcc9c6408..686802d3c48 100644
--- a/python/mxnet/test_utils.py
+++ b/python/mxnet/test_utils.py
@@ -1367,7 +1367,7 @@ def list_gpus():
             pass
     return range(len([i for i in re.split('\n') if 'GPU' in i]))
 
-def download(url, fname=None, dirname=None, overwrite=False):
+def download(url, fname=None, dirname=None, overwrite=False, retries=5):
     """Download an given URL
 
     Parameters
@@ -1385,12 +1385,17 @@ def download(url, fname=None, dirname=None, overwrite=False):
         Default is false, which means skipping download if the local file
         exists. If true, then download the url to overwrite the local file if
         exists.
+    retries : integer, default 5
+        The number of times to attempt the download in case of failure or non 200 return codes
 
     Returns
     -------
     str
         The filename of the downloaded file
     """
+
+    assert retries >= 0, "Number of retries should be at least 0"
+
     if fname is None:
         fname = url.split('/')[-1]
 
@@ -1411,12 +1416,24 @@ def download(url, fname=None, dirname=None, overwrite=False):
         logging.info("%s exists, skipping download", fname)
         return fname
 
-    r = requests.get(url, stream=True)
-    assert r.status_code == 200, "failed to open %s" % url
-    with open(fname, 'wb') as f:
-        for chunk in r.iter_content(chunk_size=1024):
-            if chunk: # filter out keep-alive new chunks
-                f.write(chunk)
+    while retries+1 > 0:
+        # Disable pyling too broad Exception
+        # pylint: disable=W0703
+        try:
+            r = requests.get(url, stream=True)
+            assert r.status_code == 200, "failed to open %s" % url
+            with open(fname, 'wb') as f:
+                for chunk in r.iter_content(chunk_size=1024):
+                    if chunk: # filter out keep-alive new chunks
+                        f.write(chunk)
+                break
+        except Exception as e:
+            retries -= 1
+            if retries <= 0:
+                raise e
+            else:
+                print("download failed, retrying, {} attempt{} left"
+                      .format(retries, 's' if retries > 1 else ''))
     logging.info("downloaded %s into %s successfully", url, fname)
     return fname
 
diff --git a/scala-package/core/src/main/scala/org/apache/mxnet/optimizer/SGD.scala b/scala-package/core/src/main/scala/org/apache/mxnet/optimizer/SGD.scala
index c1b72591952..e228e7273d8 100644
--- a/scala-package/core/src/main/scala/org/apache/mxnet/optimizer/SGD.scala
+++ b/scala-package/core/src/main/scala/org/apache/mxnet/optimizer/SGD.scala
@@ -41,14 +41,15 @@ class SGD(val learningRate: Float = 0.01f, momentum: Float = 0.0f,
    */
   override def update(index: Int, weight: NDArray, grad: NDArray, state: AnyRef): Unit = {
     // TODO(bing) implement wd_bias, wd_gamma, wd_beta (copy from python package)
-    var lr =
-      (if (lrScheduler != null) {
+    var lr = {
+      if (lrScheduler != null) {
         val scheduledLr = lrScheduler(numUpdate)
         updateCount(index)
         scheduledLr
       } else {
         this.learningRate
-      })
+      }
+    }
     lr = getLr(index, lr)
 
     val wd = getWd(index, this.wd)
diff --git a/scala-package/pom.xml b/scala-package/pom.xml
index 9dcfa7ca27e..cd5dba85dfd 100644
--- a/scala-package/pom.xml
+++ b/scala-package/pom.xml
@@ -242,7 +242,7 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.7</version>
+        <version>2.19</version>
         <configuration>
           <skipTests>true</skipTests>
         </configuration>
diff --git a/scala-package/spark/bin/run-mnist-example.sh b/scala-package/spark/bin/run-mnist-example.sh
index 962c3375a9d..392d6c6a7cf 100755
--- a/scala-package/spark/bin/run-mnist-example.sh
+++ b/scala-package/spark/bin/run-mnist-example.sh
@@ -17,6 +17,8 @@
 # specific language governing permissions and limitations
 # under the License.
 
+set -x
+
 CURR_DIR=$(cd `dirname $0`; pwd)
 SPARK_MODULE_DIR=$(cd $CURR_DIR/../; pwd)
 SCALA_PKG_DIR=$(cd $CURR_DIR/../../; pwd)
@@ -35,10 +37,7 @@ SPARK_JAR=`find ${SPARK_MODULE_DIR}/target -name "*.jar" -type f -exec ls "{}" +
 SCALA_JAR=`find ${SCALA_PKG_DIR}/assembly/$OS/target -maxdepth 1 -name "*.jar" -type f -exec ls "{}" + | grep -v -E '(javadoc|sources)'`
 
 SPARK_OPTS+=" --name mxnet-spark-mnist"
-SPARK_OPTS+=" --driver-memory 1g"
-SPARK_OPTS+=" --executor-memory 1g"
-SPARK_OPTS+=" --num-executors 2"
-SPARK_OPTS+=" --executor-cores 1"
+SPARK_OPTS+=" --driver-memory 2g"
 SPARK_OPTS+=" --jars ${SCALA_JAR}"
 
 # Download training and test set
@@ -72,7 +71,7 @@ fi
 
 HOST=`hostname`
 
-$SPARK_HOME/bin/spark-submit --master spark://$HOST:7077 \
+$SPARK_HOME/bin/spark-submit --master local[*] \
   --class org.apache.mxnet.spark.example.ClassificationExample \
   ${SPARK_OPTS} \
   ${SPARK_JAR} \
diff --git a/scala-package/spark/pom.xml b/scala-package/spark/pom.xml
index 281fad4056f..43ff1f78fe1 100644
--- a/scala-package/spark/pom.xml
+++ b/scala-package/spark/pom.xml
@@ -16,7 +16,44 @@
   <properties>
     <spark.version>1.6.3</spark.version>
   </properties>
-
+  <profiles>
+    <profile>
+      <id>osx-x86_64-cpu</id>
+      <properties>
+        <platform>osx-x86_64-cpu</platform>
+      </properties>
+    </profile>
+    <profile>
+      <id>linux-x86_64-cpu</id>
+      <properties>
+        <platform>linux-x86_64-cpu</platform>
+      </properties>
+    </profile>
+    <profile>
+      <id>linux-x86_64-gpu</id>
+      <properties>
+        <platform>linux-x86_64-gpu</platform>
+      </properties>
+    </profile>
+  </profiles>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.scalatest</groupId>
+        <artifactId>scalatest-maven-plugin</artifactId>
+        <configuration>
+          <argLine>
+            -Djava.library.path=${project.parent.basedir}/native/${platform}/target \
+            -Dlog4j.configuration=file://${project.basedir}/src/test/resources/log4j.properties
+          </argLine>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.scalastyle</groupId>
+        <artifactId>scalastyle-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
   <dependencies>
     <dependency>
       <groupId>org.apache.mxnet</groupId>
diff --git a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNet.scala b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNet.scala
index 9720038afac..4952ca2626d 100644
--- a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNet.scala
+++ b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNet.scala
@@ -127,7 +127,8 @@ class MXNet extends Serializable {
           logger.info("Starting server ...")
           val server = new ParameterServer(params.runtimeClasspath,
             role = "server",
-            rootUri = schedulerIP, rootPort = schedulerPort,
+            rootUri = schedulerIP,
+            rootPort = schedulerPort,
             numServer = params.numServer,
             numWorker = params.numWorker,
             timeout = params.timeout,
@@ -241,7 +242,9 @@ class MXNet extends Serializable {
   def fit(data: RDD[LabeledPoint]): MXNetModel = {
     val sc = data.context
     // distribute native jars
-    params.jars.foreach(jar => sc.addFile(jar))
+    if (params.jars != null) {
+      params.jars.foreach(jar => sc.addFile(jar))
+    }
     val trainData = {
       if (params.numWorker != data.partitions.length) {
         logger.info("repartitioning training set to {} partitions", params.numWorker)
diff --git a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNetParams.scala b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNetParams.scala
index 47e6cd49113..f72e56e9efb 100644
--- a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNetParams.scala
+++ b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/MXNetParams.scala
@@ -61,7 +61,11 @@ private[mxnet] class MXNetParams extends Serializable {
   // jars on executors for running mxnet application
   var jars: Array[String] = null
   def runtimeClasspath: String = {
-    jars.map(jar => SparkFiles.get(new File(jar).getName)).mkString(":")
+    if (jars != null) {
+      jars.map(jar => SparkFiles.get(new File(jar).getName)).mkString(":")
+    } else {
+      ""
+    }
   }
 
   // java binary
diff --git a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/ParameterServer.scala b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/ParameterServer.scala
index 907d3decde5..45033d48c6a 100644
--- a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/ParameterServer.scala
+++ b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/ParameterServer.scala
@@ -51,7 +51,7 @@ private[mxnet] object ParameterServer {
 
   def buildEnv(role: String, rootUri: String, rootPort: Int,
                numServer: Int, numWorker: Int): Map[String, String] = {
-    val envs: mutable.Map[String, String] = mutable.HashMap.empty[String, String]
+    val envs = mutable.HashMap.empty[String, String]
     envs.put("DMLC_ROLE", role)
     envs.put("DMLC_PS_ROOT_URI", rootUri)
     envs.put("DMLC_PS_ROOT_PORT", rootPort.toString)
@@ -127,9 +127,9 @@ class ParameterServer(
     val inputStream = psProcess.get().getInputStream
     val errorStream = psProcess.get().getErrorStream
     logger.info(s"Starting InputStream-Redirecter Thread for $rootUri:$rootPort")
-    new RedirectThread(inputStream, System.out, "InputStream-Redirecter", true).start()
+    new RedirectThread(inputStream, System.out, "InputStream-Redirecter", false).start()
     logger.info(s"Starting ErrorStream-Redirecter Thread for $rootUri:$rootPort")
-    new RedirectThread(errorStream, System.err, "ErrorStream-Redirecter", true).start()
+    new RedirectThread(errorStream, System.err, "ErrorStream-Redirecter", false).start()
   }
 
   def startProcess(): Int = {
diff --git a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/example/ClassificationExample.scala b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/example/ClassificationExample.scala
index ce49302fd88..2026bdee9fe 100644
--- a/scala-package/spark/src/main/scala/org/apache/mxnet/spark/example/ClassificationExample.scala
+++ b/scala-package/spark/src/main/scala/org/apache/mxnet/spark/example/ClassificationExample.scala
@@ -103,6 +103,7 @@ object ClassificationExample {
       sc.stop()
     } catch {
       case e: Throwable =>
+        e.printStackTrace()
         logger.error(e.getMessage, e)
         sys.exit(-1)
     }
diff --git a/scala-package/spark/src/test/scala/org/apache/mxnet/spark/MXNetGeneralSuite.scala b/scala-package/spark/src/test/scala/org/apache/mxnet/spark/MXNetGeneralSuite.scala
new file mode 100644
index 00000000000..74bc1dbb71f
--- /dev/null
+++ b/scala-package/spark/src/test/scala/org/apache/mxnet/spark/MXNetGeneralSuite.scala
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.mxnet.spark
+
+import java.io.{BufferedReader, File, InputStreamReader}
+import java.nio.file.Files
+
+import scala.sys.process.Process
+
+import org.apache.spark.SparkContext
+import org.apache.spark.mllib.linalg.Vectors
+import org.apache.spark.mllib.regression.LabeledPoint
+import org.apache.spark.rdd.RDD
+
+class MXNetGeneralSuite extends SharedSparkContext {
+
+  private var testDataDir: String = _
+
+  private def parseRawData(sc: SparkContext, path: String): RDD[LabeledPoint] = {
+    val raw = sc.textFile(path)
+    raw.map { s =>
+      val parts = s.split(' ')
+      val label = java.lang.Double.parseDouble(parts(0))
+      val features = Vectors.dense(parts(1).trim().split(',').map(java.lang.Double.parseDouble))
+      LabeledPoint(label, features)
+    }
+  }
+
+  private def downloadTestData(): Unit = {
+    Process("wget http://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon" +
+      "/dataset/mxnet-spark-test/train.txt" + " -P " + testDataDir + " -q") !
+  }
+
+  override def beforeAll(): Unit = {
+    val tempDirFile = Files.createTempDirectory(s"mxnet-spark-test-${System.currentTimeMillis()}").
+      toFile
+    testDataDir = tempDirFile.getPath
+    tempDirFile.deleteOnExit()
+    downloadTestData()
+  }
+
+
+  test("run spark with MLP") {
+    val trainData = parseRawData(sc, s"$testDataDir/train.txt")
+    val model = buildMlp().fit(trainData)
+    assert(model != null)
+  }
+
+  test("run spark with LeNet") {
+    val trainData = parseRawData(sc, s"$testDataDir/train.txt")
+    val model = buildLeNet().fit(trainData)
+    assert(model != null)
+  }
+}
diff --git a/scala-package/spark/src/test/scala/org/apache/mxnet/spark/SharedSparkContext.scala b/scala-package/spark/src/test/scala/org/apache/mxnet/spark/SharedSparkContext.scala
new file mode 100644
index 00000000000..2efd1814bc9
--- /dev/null
+++ b/scala-package/spark/src/test/scala/org/apache/mxnet/spark/SharedSparkContext.scala
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.mxnet.spark
+
+import java.io.{File, FileFilter}
+
+import org.apache.mxnet.{Context, Shape, Symbol}
+
+import org.apache.spark.{SparkConf, SparkContext}
+import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FunSuite}
+
+trait SharedSparkContext extends FunSuite with BeforeAndAfterEach with BeforeAndAfterAll {
+
+  protected var sc: SparkContext = _
+
+  protected val numWorkers: Int = math.min(Runtime.getRuntime.availableProcessors(), 2)
+
+  override def beforeEach() {
+    sc = new SparkContext(new SparkConf().setMaster("local[*]").setAppName("mxnet-spark-test"))
+  }
+
+  override def afterEach(): Unit = {
+    if (sc != null) {
+      sc.stop()
+    }
+  }
+
+  private def getMlp: Symbol = {
+    val data = Symbol.Variable("data")
+    val fc1 = Symbol.FullyConnected(name = "fc1")()(Map("data" -> data, "num_hidden" -> 128))
+    val act1 = Symbol.Activation(name = "relu1")()(Map("data" -> fc1, "act_type" -> "relu"))
+    val fc2 = Symbol.FullyConnected(name = "fc2")()(Map("data" -> act1, "num_hidden" -> 64))
+    val act2 = Symbol.Activation(name = "relu2")()(Map("data" -> fc2, "act_type" -> "relu"))
+    val fc3 = Symbol.FullyConnected(name = "fc3")()(Map("data" -> act2, "num_hidden" -> 10))
+    val mlp = Symbol.SoftmaxOutput(name = "softmax")()(Map("data" -> fc3))
+    mlp
+  }
+
+  def getLenet: Symbol = {
+    val data = Symbol.Variable("data")
+    // first conv
+    val conv1 = Symbol.Convolution()()(
+      Map("data" -> data, "kernel" -> "(5, 5)", "num_filter" -> 20))
+    val tanh1 = Symbol.Activation()()(Map("data" -> conv1, "act_type" -> "tanh"))
+    val pool1 = Symbol.Pooling()()(Map("data" -> tanh1, "pool_type" -> "max",
+      "kernel" -> "(2, 2)", "stride" -> "(2, 2)"))
+    // second conv
+    val conv2 = Symbol.Convolution()()(
+      Map("data" -> pool1, "kernel" -> "(5, 5)", "num_filter" -> 50))
+    val tanh2 = Symbol.Activation()()(Map("data" -> conv2, "act_type" -> "tanh"))
+    val pool2 = Symbol.Pooling()()(Map("data" -> tanh2, "pool_type" -> "max",
+      "kernel" -> "(2, 2)", "stride" -> "(2, 2)"))
+    // first fullc
+    val flatten = Symbol.Flatten()()(Map("data" -> pool2))
+    val fc1 = Symbol.FullyConnected()()(Map("data" -> flatten, "num_hidden" -> 500))
+    val tanh3 = Symbol.Activation()()(Map("data" -> fc1, "act_type" -> "tanh"))
+    // second fullc
+    val fc2 = Symbol.FullyConnected()()(Map("data" -> tanh3, "num_hidden" -> 10))
+    // loss
+    val lenet = Symbol.SoftmaxOutput(name = "softmax")()(Map("data" -> fc2))
+    lenet
+  }
+
+  private def composeWorkingDirPath: String = {
+    System.getProperty("user.dir")
+  }
+
+  private def getJarFilePath(root: String): String = {
+    for (platform <- List("linux-x86_64-cpu", "linux-x86_64-gpu", "osx-x86_64-cpu")) {
+      val jarFiles = new File(s"$root/$platform/target/").listFiles(new FileFilter {
+        override def accept(pathname: File) = {
+          pathname.getAbsolutePath.endsWith(".jar") &&
+            !pathname.getAbsolutePath.contains("javadoc") &&
+            !pathname.getAbsolutePath.contains("sources")
+        }
+      })
+      if (jarFiles != null && jarFiles.nonEmpty) {
+        return jarFiles.head.getAbsolutePath
+      }
+    }
+    null
+  }
+
+  private def getSparkJar: String = {
+    val jarFiles = new File(s"$composeWorkingDirPath/target/").listFiles(new FileFilter {
+      override def accept(pathname: File) = {
+        pathname.getAbsolutePath.endsWith(".jar") &&
+          !pathname.getAbsolutePath.contains("javadoc") &&
+          !pathname.getAbsolutePath.contains("sources")
+      }
+    })
+    if (jarFiles != null && jarFiles.nonEmpty) {
+      jarFiles.head.getAbsolutePath
+    } else {
+      null
+    }
+  }
+
+  protected def buildLeNet(): MXNet = {
+    val workingDir = composeWorkingDirPath
+    val assemblyRoot = s"$workingDir/../assembly"
+    new MXNet()
+      .setBatchSize(128)
+      .setLabelName("softmax_label")
+      .setContext(Array(Context.cpu(0), Context.cpu(1)))
+      .setDimension(Shape(1, 28, 28))
+      .setNetwork(getLenet)
+      .setNumEpoch(10)
+      .setNumServer(1)
+      .setNumWorker(numWorkers)
+      .setExecutorJars(s"${getJarFilePath(assemblyRoot)},$getSparkJar")
+      .setJava("java")
+  }
+
+  protected def buildMlp(): MXNet = {
+    val workingDir = composeWorkingDirPath
+    val assemblyRoot = s"$workingDir/../assembly"
+    new MXNet()
+      .setBatchSize(128)
+      .setLabelName("softmax_label")
+      .setContext(Array(Context.cpu(0), Context.cpu(1)))
+      .setDimension(Shape(784))
+      .setNetwork(getMlp)
+      .setNumEpoch(10)
+      .setNumServer(1)
+      .setNumWorker(numWorkers)
+      .setExecutorJars(s"${getJarFilePath(assemblyRoot)},$getSparkJar")
+      .setJava("java")
+      .setTimeout(0)
+  }
+}
diff --git a/src/imperative/imperative_utils.h b/src/imperative/imperative_utils.h
index 8e99b995a14..726531d0299 100644
--- a/src/imperative/imperative_utils.h
+++ b/src/imperative/imperative_utils.h
@@ -82,7 +82,7 @@ inline Context GetContext(const nnvm::NodeAttrs& attrs,
     ctx = default_ctx;
   }
   // Non-default context (pinned, shared) does not propagate
-  if (ctx.dev_mask() != ctx.dev_type) {
+  if (ctx.dev_mask() != ctx.dev_type && inputs.size() != 0U) {
     ctx = Context::Create(ctx.dev_mask(), ctx.dev_id);
   }
 #if !MXNET_USE_CUDA
diff --git a/src/kvstore/kvstore_dist.h b/src/kvstore/kvstore_dist.h
index 373081bc7b1..dd3464bf6db 100644
--- a/src/kvstore/kvstore_dist.h
+++ b/src/kvstore/kvstore_dist.h
@@ -61,6 +61,7 @@ class KVStoreDist : public KVStoreLocal {
 
   virtual ~KVStoreDist() {
     Engine::Get()->WaitForAll();
+    customer_id_ = 0;
     if (IsWorkerNode()) {
       if (barrier_before_exit_) {
         Barrier();
@@ -183,7 +184,7 @@ class KVStoreDist : public KVStoreLocal {
     for (size_t i = 0; i < keys.size(); ++i) {
       comm_->Init(keys[i], values[i].storage_type(), values[i].shape(), values[i].dtype());
     }
-    if (get_rank() == 0) {
+    if (get_rank() == 0 && this->ps_worker_->get_customer()->customer_id() == 0) {
       Push_(keys, values, 0, false);
       // wait until the push is finished
       for (const int key : keys) {
diff --git a/src/kvstore/kvstore_dist_server.h b/src/kvstore/kvstore_dist_server.h
index 421de27b39d..a150ff42f57 100644
--- a/src/kvstore/kvstore_dist_server.h
+++ b/src/kvstore/kvstore_dist_server.h
@@ -103,7 +103,8 @@ class Executor {
       lk.unlock();
 
       if (blk.f) {
-        blk.f(); blk.p->set_value();
+        blk.f();
+        blk.p->set_value();
       } else {
         blk.p->set_value(); break;
       }
diff --git a/src/operator/contrib/bounding_box-inl.cuh b/src/operator/contrib/bounding_box-inl.cuh
new file mode 100644
index 00000000000..fb1dacc11f4
--- /dev/null
+++ b/src/operator/contrib/bounding_box-inl.cuh
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*!
+ * \file bounding_box-inl.cuh
+ * \brief bounding box CUDA operators
+ * \author Joshua Zhang
+*/
+#ifndef MXNET_OPERATOR_CONTRIB_BOUNDING_BOX_INL_CUH_
+#define MXNET_OPERATOR_CONTRIB_BOUNDING_BOX_INL_CUH_
+#include <mxnet/operator_util.h>
+#include <thrust/copy.h>
+#include <thrust/execution_policy.h>
+#include "../mshadow_op.h"
+#include "../mxnet_op.h"
+#include "../operator_common.h"
+
+namespace mxnet {
+namespace op {
+
+template<typename DType>
+struct valid_score {
+  DType thresh;
+  explicit valid_score(DType _thresh) : thresh(_thresh) {}
+  __host__ __device__ bool operator()(const DType x) {
+    return x > thresh;
+  }
+};
+
+template<typename DType>
+int FilterScores(mshadow::Tensor<gpu, 1, DType> out_scores,
+                 mshadow::Tensor<gpu, 1, DType> out_sorted_index,
+                 mshadow::Tensor<gpu, 1, DType> scores,
+                 mshadow::Tensor<gpu, 1, DType> sorted_index,
+                 float valid_thresh) {
+  valid_score<DType> pred(static_cast<DType>(valid_thresh));
+  DType * end_scores = thrust::copy_if(thrust::device, scores.dptr_, scores.dptr_ + scores.MSize(),
+                                       out_scores.dptr_, pred);
+  thrust::copy_if(thrust::device, sorted_index.dptr_, sorted_index.dptr_ + sorted_index.MSize(),
+                  scores.dptr_, out_sorted_index.dptr_, pred);
+  return end_scores - out_scores.dptr_;
+}
+
+}  // namespace op
+}  // namespace mxnet
+
+#endif  // MXNET_OPERATOR_CONTRIB_BOUNDING_BOX_INL_CUH_
diff --git a/src/operator/contrib/bounding_box-inl.h b/src/operator/contrib/bounding_box-inl.h
index 40dbdd81669..f739dbc8a52 100644
--- a/src/operator/contrib/bounding_box-inl.h
+++ b/src/operator/contrib/bounding_box-inl.h
@@ -49,6 +49,7 @@ enum BoxNMSOpResource {kTempSpace};
 
 struct BoxNMSParam : public dmlc::Parameter<BoxNMSParam> {
   float overlap_thresh;
+  float valid_thresh;
   int topk;
   int coord_start;
   int score_index;
@@ -59,6 +60,8 @@ struct BoxNMSParam : public dmlc::Parameter<BoxNMSParam> {
   DMLC_DECLARE_PARAMETER(BoxNMSParam) {
     DMLC_DECLARE_FIELD(overlap_thresh).set_default(0.5)
     .describe("Overlapping(IoU) threshold to suppress object with smaller score.");
+    DMLC_DECLARE_FIELD(valid_thresh).set_default(0)
+    .describe("Filter input boxes to those whose scores greater than valid_thresh.");
     DMLC_DECLARE_FIELD(topk).set_default(-1)
     .describe("Apply nms to topk boxes with descending scores, -1 to no restriction.");
     DMLC_DECLARE_FIELD(coord_start).set_default(2)
@@ -145,6 +148,33 @@ inline uint32_t BoxNMSNumVisibleOutputs(const NodeAttrs& attrs) {
   return static_cast<uint32_t>(1);
 }
 
+template<typename DType>
+int FilterScores(mshadow::Tensor<cpu, 1, DType> out_scores,
+                 mshadow::Tensor<cpu, 1, DType> out_sorted_index,
+                 mshadow::Tensor<cpu, 1, DType> scores,
+                 mshadow::Tensor<cpu, 1, DType> sorted_index,
+                 float valid_thresh) {
+  index_t j = 0;
+  for (index_t i = 0; i < scores.size(0); i++) {
+    if (scores[i] > valid_thresh) {
+      out_scores[j] = scores[i];
+      out_sorted_index[j] = sorted_index[i];
+      j++;
+    }
+  }
+  return j;
+}
+
+namespace mshadow_op {
+struct less_than : public mxnet_op::tunable {
+  // a is x, b is sigma
+  template<typename DType>
+  MSHADOW_XINLINE static DType Map(DType a, DType b) {
+    return static_cast<DType>(a < b);
+  }
+};  // struct equal_to
+}   // namespace mshadow_op
+
 struct corner_to_center {
   template<typename DType>
   MSHADOW_XINLINE static void Map(int i, DType *data, int stride) {
@@ -198,15 +228,28 @@ MSHADOW_XINLINE DType BoxArea(const DType *box, int encode) {
   }
 }
 
-// compute areas specialized for nms to reduce computation
+/*!
+ * \brief compute areas specialized for nms to reduce computation
+ * 
+ * \param i the launched thread index (total thread num_batch * topk)
+ * \param out 1d array for areas (size num_batch * num_elem)
+ * \param in 1st coordinate of 1st box (buffer + coord_start)
+ * \param indices index to areas and in buffer (sorted_index)
+ * \param batch_start map (b, k) to compact index by indices[batch_start[b] + k]
+ * \param topk effective batch size of boxes, to be mapped to real index
+ * \param stride should be width_elem (e.g. 6 including cls and scores)
+ * \param encode passed to BoxArea to compute area
+ */
 struct compute_area {
   template<typename DType>
   MSHADOW_XINLINE static void Map(int i, DType *out, const DType *in,
-                                  const DType *indices, int topk, int num_elem,
-                                  int stride, int encode) {
+                                  const DType *indices, const DType *batch_start,
+                                  int topk, int num_elem, int stride, int encode) {
     int b = i / topk;
     int k = i % topk;
-    int index = static_cast<int>(indices[b * num_elem + k]);
+    int pos = static_cast<int>(batch_start[b]) + k;
+    if (pos >= static_cast<int>(batch_start[b + 1])) return;
+    int index = static_cast<int>(indices[pos]);
     int in_index = index * stride;
     out[index] = BoxArea(in + in_index, encode);
   }
@@ -243,6 +286,7 @@ MSHADOW_XINLINE DType Intersect(const DType *a, const DType *b, int encode) {
    *
    * \param i the launched thread index
    * \param index sorted index in descending order
+   * \param batch_start map (b, k) to compact index by indices[batch_start[b] + k]
    * \param input the input of nms op
    * \param areas pre-computed box areas
    * \param k nms topk number
@@ -254,20 +298,25 @@ MSHADOW_XINLINE DType Intersect(const DType *a, const DType *b, int encode) {
    * \param force force suppress regardless of class id
    * \param offset_id class id offset, used when force == false, usually 0
    * \param encode box encoding type, corner(0) or center(1)
-   * \tparam DType the data type
+   * \param DType the data type
    */
 struct nms_impl {
   template<typename DType>
-  MSHADOW_XINLINE static void Map(int i, DType *index, const DType *input,
-                                  const DType *areas, int k, int ref, int num,
+  MSHADOW_XINLINE static void Map(int i, DType *index, const DType *batch_start,
+                                  const DType *input, const DType *areas,
+                                  int k, int ref, int num,
                                   int stride, int offset_box, int offset_id,
                                   float thresh, bool force, int encode) {
     int b = i / k;  // batch
     int pos = i % k + ref + 1;  // position
-    if (index[b * num + ref] < 0) return;  // reference has been suppressed
-    if (index[b * num + pos] < 0) return;  // self been suppressed
-    int ref_offset = static_cast<int>(index[b * num + ref]) * stride + offset_box;
-    int pos_offset = static_cast<int>(index[b * num + pos]) * stride + offset_box;
+    ref = static_cast<int>(batch_start[b]) + ref;
+    pos = static_cast<int>(batch_start[b]) + pos;
+    if (ref >= static_cast<int>(batch_start[b + 1])) return;
+    if (pos >= static_cast<int>(batch_start[b + 1])) return;
+    if (index[ref] < 0) return;  // reference has been suppressed
+    if (index[pos] < 0) return;  // self been suppressed
+    int ref_offset = static_cast<int>(index[ref]) * stride + offset_box;
+    int pos_offset = static_cast<int>(index[pos]) * stride + offset_box;
     if (!force && offset_id >=0) {
       int ref_id = static_cast<int>(input[ref_offset - offset_box + offset_id]);
       int pos_id = static_cast<int>(input[pos_offset - offset_box + offset_id]);
@@ -275,23 +324,38 @@ struct nms_impl {
     }
     DType intersect = Intersect(input + ref_offset, input + pos_offset, encode);
     intersect *= Intersect(input + ref_offset + 1, input + pos_offset + 1, encode);
-    int ref_area_offset = static_cast<int>(index[b * num + ref]);
-    int pos_area_offset = static_cast<int>(index[b * num + pos]);
+    int ref_area_offset = static_cast<int>(index[ref]);
+    int pos_area_offset = static_cast<int>(index[pos]);
     DType iou = intersect / (areas[ref_area_offset] + areas[pos_area_offset] -
       intersect);
     if (iou > thresh) {
-      index[b * num + pos] = -1;
+      index[pos] = -1;
     }
   }
 };
 
+/*!
+   * \brief Assign output of nms by indexing input
+   * 
+   * \param i the launched thread index (total num_batch)
+   * \param out output array [cls, conf, b0, b1, b2, b3]
+   * \param record book keeping the selected index for backward
+   * \param index compact sorted_index, use batch_start to access
+   * \param batch_start map(b, k) to compact index by index[batch_start[b] + k]
+   * \param k nms topk number
+   * \param num number of input boxes in each batch
+   * \param stride input stride, usually 6 (id-score-x1-y2-x2-y2)
+   */
 struct nms_assign {
   template<typename DType>
   MSHADOW_XINLINE static void Map(int i, DType *out, DType *record, const DType *input,
-                                  const DType *index, int k, int num, int stride) {
+                                  const DType *index, const DType *batch_start,
+                                  int k, int num, int stride) {
     int count = 0;
     for (int j = 0; j < k; ++j) {
-      int location = static_cast<int>(index[i * num + j]);
+      int pos = static_cast<int>(batch_start[i]) + j;
+      if (pos >= static_cast<int>(batch_start[i + 1])) return;
+      int location = static_cast<int>(index[pos]);
       if (location >= 0) {
         // copy to output
         int out_location = (i * num + count) * stride;
@@ -352,6 +416,8 @@ void BoxNMSForward(const nnvm::NodeAttrs& attrs,
     Shape<1> sort_index_shape = Shape1(num_batch * num_elem);
     Shape<3> buffer_shape = Shape3(num_batch, num_elem, width_elem);
     index_t workspace_size = 4 * sort_index_shape.Size();
+    Shape<1> batch_start_shape = Shape1(num_batch + 1);
+    workspace_size += batch_start_shape.Size();
     if (req[0] == kWriteInplace) {
       workspace_size += buffer_shape.Size();
     }
@@ -363,10 +429,11 @@ void BoxNMSForward(const nnvm::NodeAttrs& attrs,
     Tensor<xpu, 1, DType> batch_id(scores.dptr_ + scores.MSize(), sort_index_shape,
       s);
     Tensor<xpu, 1, DType> areas(batch_id.dptr_ + batch_id.MSize(), sort_index_shape, s);
+    Tensor<xpu, 1, DType> batch_start(areas.dptr_ + areas.MSize(), batch_start_shape, s);
     Tensor<xpu, 3, DType> buffer = data;
     if (req[0] == kWriteInplace) {
       // make copy
-      buffer = Tensor<xpu, 3, DType>(areas.dptr_ + areas.MSize(), buffer_shape, s);
+      buffer = Tensor<xpu, 3, DType>(batch_start.dptr_ + batch_start.MSize(), buffer_shape, s);
       buffer = F<mshadow_op::identity>(data);
     }
 
@@ -382,19 +449,51 @@ void BoxNMSForward(const nnvm::NodeAttrs& attrs,
       record = reshape(range<DType>(0, num_batch * num_elem), record.shape_);
       return;
     }
-    scores = reshape(slice<2>(buffer, score_index, score_index + 1), scores.shape_);
-    sorted_index = range<DType>(0, num_batch * num_elem);
-    mxnet::op::SortByKey(scores, sorted_index, false);
-    batch_id = F<mshadow_op::floor>(sorted_index / ScalarExp<DType>(num_elem));
-    mxnet::op::SortByKey(batch_id, scores, true);
-    batch_id = F<mshadow_op::floor>(sorted_index / ScalarExp<DType>(num_elem));
-    mxnet::op::SortByKey(batch_id, sorted_index, true);
+
+    // use batch_id and areas as temporary storage
+    Tensor<xpu, 1, DType> all_scores = batch_id;
+    Tensor<xpu, 1, DType> all_sorted_index = areas;
+    all_scores = reshape(slice<2>(buffer, score_index, score_index + 1), all_scores.shape_);
+    all_sorted_index = range<DType>(0, num_batch * num_elem);
+
+    // filter scores but keep original sorted_index value
+    // move valid score and index to the front, return valid size
+    int num_valid = mxnet::op::FilterScores(scores, sorted_index, all_scores, all_sorted_index,
+                                            param.valid_thresh);
+    // if everything is filtered, output -1
+    if (num_valid == 0) {
+      record = -1;
+      out = -1;
+      return;
+    }
+    // mark the invalid boxes before nms
+    if (num_valid < num_batch * num_elem) {
+      slice<0>(sorted_index, num_valid, num_batch * num_elem) = -1;
+    }
+
+    // only sort the valid scores and batch_id
+    Shape<1> valid_score_shape = Shape1(num_valid);
+    Tensor<xpu, 1, DType> valid_scores(scores.dptr_, valid_score_shape, s);
+    Tensor<xpu, 1, DType> valid_sorted_index(sorted_index.dptr_, valid_score_shape, s);
+    Tensor<xpu, 1, DType> valid_batch_id(batch_id.dptr_, valid_score_shape, s);
+
+    // sort index by batch_id then score (stable sort)
+    mxnet::op::SortByKey(valid_scores, valid_sorted_index, false);
+    valid_batch_id = F<mshadow_op::floor>(valid_sorted_index / ScalarExp<DType>(num_elem));
+    mxnet::op::SortByKey(valid_batch_id, valid_sorted_index, true);
+
+    // calculate batch_start: accumulated sum to denote 1st sorted_index for a given batch_index
+    valid_batch_id = F<mshadow_op::floor>(valid_sorted_index / ScalarExp<DType>(num_elem));
+    for (int b = 0; b < num_batch + 1; b++) {
+      slice<0>(batch_start, b, b + 1) = reduce_keepdim<red::sum, false>(
+        F<mshadow_op::less_than>(valid_batch_id, ScalarExp<DType>(b)), 0);
+    }
 
     // pre-compute areas of candidates
     areas = 0;
-    Kernel<compute_area, xpu>::Launch(s, num_batch * topk, areas.dptr_,
-     buffer.dptr_ + coord_start, sorted_index.dptr_, topk, num_elem, width_elem,
-     param.in_format);
+    Kernel<compute_area, xpu>::Launch(s, num_batch * topk,
+     areas.dptr_, buffer.dptr_ + coord_start, sorted_index.dptr_, batch_start.dptr_,
+     topk, num_elem, width_elem, param.in_format);
 
     // apply nms
     // go through each box as reference, suppress if overlap > threshold
@@ -402,16 +501,19 @@ void BoxNMSForward(const nnvm::NodeAttrs& attrs,
     for (int ref = 0; ref < topk; ++ref) {
       int num_worker = topk - ref - 1;
       if (num_worker < 1) continue;
-      Kernel<nms_impl, xpu>::Launch(s, num_batch * num_worker, sorted_index.dptr_,
-        buffer.dptr_, areas.dptr_, num_worker, ref, num_elem, width_elem,
-        coord_start, id_index, param.overlap_thresh, param.force_suppress, param.in_format);
+      Kernel<nms_impl, xpu>::Launch(s, num_batch * num_worker,
+        sorted_index.dptr_, batch_start.dptr_, buffer.dptr_, areas.dptr_,
+        num_worker, ref, num_elem,
+        width_elem, coord_start, id_index,
+        param.overlap_thresh, param.force_suppress, param.in_format);
     }
 
     // store the results to output, keep a record for backward
     record = -1;
     out = -1;
-    Kernel<nms_assign, xpu>::Launch(s, num_batch, out.dptr_, record.dptr_,
-      buffer.dptr_, sorted_index.dptr_, topk, num_elem, width_elem);
+    Kernel<nms_assign, xpu>::Launch(s, num_batch,
+      out.dptr_, record.dptr_, buffer.dptr_, sorted_index.dptr_, batch_start.dptr_,
+      topk, num_elem, width_elem);
 
     // convert encoding
     if (param.in_format != param.out_format) {
diff --git a/src/operator/contrib/bounding_box.cu b/src/operator/contrib/bounding_box.cu
index 6662d932700..2677d2f7947 100644
--- a/src/operator/contrib/bounding_box.cu
+++ b/src/operator/contrib/bounding_box.cu
@@ -24,6 +24,7 @@
   * \author Joshua Zhang
   */
 
+#include "./bounding_box-inl.cuh"
 #include "./bounding_box-inl.h"
 #include "../elemwise_op_common.h"
 
diff --git a/src/operator/nn/concat-inl.h b/src/operator/nn/concat-inl.h
index a7f1fa85f61..7a58ae6f0cc 100644
--- a/src/operator/nn/concat-inl.h
+++ b/src/operator/nn/concat-inl.h
@@ -154,6 +154,91 @@ void ConcatGradCompute(const nnvm::NodeAttrs& attrs, const OpContext& ctx,
   });
 }
 
+/*!
+ * \brief concat CSRNDArray on the first dimension.
+ */
+struct concat_csr_first_dim {
+  /*!
+   * \param i              the i-th row of the input ndarray
+   * \param out_idx        output csr ndarray column indices
+   * \param out_data       output csr ndarray data
+   * \param out_indptr     output csr ndarray row index pointer
+   * \param in_idx         input csr ndarray column indices
+   * \param in_data        input csr ndarray data
+   * \param in_indptr      input csr ndarray row index pointer
+   * \param indptr_offset  offset for ouput ndarray row index pointer
+   * \param idx_offset     offset for ouput ndarray column indices
+   */
+  template<typename DType, typename RType, typename IType>
+  MSHADOW_XINLINE static void Map(int i, const OpReqType req,
+                                  DType* out_data, const DType* in_data,
+                                  RType* out_indptr, const RType* in_indptr,
+                                  IType* out_idx, const IType* in_idx,
+                                  const nnvm::dim_t indptr_offset,
+                                  const nnvm::dim_t idx_offset) {
+    if (i == 0) out_indptr[0] = 0;
+    out_indptr[i+1+indptr_offset] = in_indptr[i+1] + idx_offset;
+    for (nnvm::dim_t j = in_indptr[i]; j < in_indptr[i+1]; ++j) {
+      KERNEL_ASSIGN(out_idx[j+idx_offset], req, in_idx[j]);
+      KERNEL_ASSIGN(out_data[j+idx_offset], req, in_data[j]);
+    }
+  }
+};
+
+template<typename xpu>
+void ConcatCSRImpl(const nnvm::NodeAttrs& attrs,
+                   const OpContext& ctx,
+                   const std::vector<NDArray>& inputs,
+                   const std::vector<OpReqType>& req,
+                   const std::vector<NDArray>& outputs) {
+  using namespace mshadow;
+  using namespace mxnet_op;
+  using namespace csr;
+  const ConcatParam& param = nnvm::get<ConcatParam>(attrs.parsed);
+  int num_args = param.num_args;
+  int concat_dim = param.dim;
+  CHECK_EQ(inputs.size(), num_args);
+  CHECK_EQ(outputs.size(), 1);
+  int axis = CheckAxis(concat_dim, inputs[0].shape().ndim());
+  CHECK_EQ(axis, 0) << "concat of csr ndarrays on axis 1 is not supported.";
+  if (req[0] == kNullOp) return;
+  Stream<xpu>* s = ctx.get_stream<xpu>();
+  nnvm::dim_t nnz = 0;
+  for (int i=0; i < num_args; i++) {
+    nnz += inputs[i].aux_shape(kIdx)[0];
+  }
+  const NDArray& out = outputs[0];
+  if (nnz == 0) {
+    FillZerosCsrImpl(s, out);
+    return;
+  }
+  const nnvm::dim_t num_rows = out.shape()[0];
+  out.CheckAndAllocAuxData(kIndPtr, Shape1(num_rows+1));
+
+  MSHADOW_IDX_TYPE_SWITCH(inputs[0].aux_type(kIndPtr), RType, {
+    MSHADOW_IDX_TYPE_SWITCH(inputs[0].aux_type(kIdx), IType, {
+      MSHADOW_TYPE_SWITCH(inputs[0].dtype(), DType, {
+        RType* out_indptr = out.aux_data(kIndPtr).dptr<RType>();
+        out.CheckAndAllocAuxData(kIdx, Shape1(nnz));
+        out.CheckAndAllocData(Shape1(nnz));
+        IType* out_idx = out.aux_data(kIdx).dptr<IType>();
+        DType* out_data = out.data().dptr<DType>();
+        nnvm::dim_t indptr_offset = 0;
+        nnvm::dim_t idx_offset = 0;
+        for (const auto& in : inputs) {
+          const RType* in_indptr = in.aux_data(kIndPtr).dptr<RType>();
+          const IType* in_idx = in.aux_data(kIdx).dptr<IType>();
+          const DType* in_data = in.data().dptr<DType>();
+          Kernel<concat_csr_first_dim, xpu>::Launch(s, in.shape()[0], req[0], out_data,
+            in_data, out_indptr, in_indptr, out_idx, in_idx, indptr_offset, idx_offset);
+          indptr_offset += in.shape()[0];
+          idx_offset += in.aux_shape(kIdx)[0];
+        }
+      });
+    });
+  });
+}
+
 }  // namespace op
 }  // namespace mxnet
 
diff --git a/src/operator/nn/concat.cc b/src/operator/nn/concat.cc
index a7fcb1c8817..04332456cda 100644
--- a/src/operator/nn/concat.cc
+++ b/src/operator/nn/concat.cc
@@ -112,18 +112,30 @@ inline static bool ConcatForwardInferStorageType(const nnvm::NodeAttrs& attrs,
                                                  std::vector<int> *out_attrs) {
   CHECK(!in_attrs->empty());
   CHECK_EQ(out_attrs->size(), 1U);
-  DispatchMode wanted_mode;
-#if MXNET_USE_MKLDNN == 1
+  auto& out_stype = out_attrs->at(0);
+  bool dispatched = false;
   const ConcatParam& param = nnvm::get<ConcatParam>(attrs.parsed);
-  if (dev_mask == mshadow::cpu::kDevMask
+  if (!dispatched && common::ContainsOnlyStorage(*in_attrs, kCSRStorage)
+      && param.dim == 0) {
+    dispatched = storage_type_assign(&out_stype, kCSRStorage,
+                                     dispatch_mode, DispatchMode::kFComputeEx);
+  }
+#if MXNET_USE_MKLDNN == 1
+  if (!dispatched && dev_mask == mshadow::cpu::kDevMask
       && common::ContainsOnlyStorage(*in_attrs, kDefaultStorage)
-      && param.dim > 0)
-    wanted_mode = DispatchMode::kFComputeEx;
-  else
+      && param.dim > 0) {
+    dispatched = storage_type_assign(&out_stype, kDefaultStorage,
+                                     dispatch_mode, DispatchMode::kFComputeEx);
+  }
 #endif
-    wanted_mode = DispatchMode::kFCompute;
-  return storage_type_assign(out_attrs, mxnet::kDefaultStorage,
-                             dispatch_mode, wanted_mode);
+  if (!dispatched && common::ContainsOnlyStorage(*in_attrs, kDefaultStorage)) {
+    dispatched = storage_type_assign(&out_stype, kDefaultStorage,
+                                     dispatch_mode, DispatchMode::kFCompute);
+  }
+  if (!dispatched) {
+    dispatched = dispatch_fallback(out_attrs, dispatch_mode);
+  }
+  return dispatched;
 }
 
 inline static bool BackwardConcatStorageType(const nnvm::NodeAttrs& attrs,
@@ -146,7 +158,6 @@ inline static bool BackwardConcatStorageType(const nnvm::NodeAttrs& attrs,
                              dispatch_mode, wanted_mode);
 }
 
-#if MXNET_USE_MKLDNN == 1
 static void ConcatComputeExCPU(const nnvm::NodeAttrs& attrs,
                                const OpContext& op_ctx,
                                const std::vector<NDArray>& inputs,
@@ -156,17 +167,24 @@ static void ConcatComputeExCPU(const nnvm::NodeAttrs& attrs,
   CHECK_EQ(outputs.size(), 1U);
   CHECK_EQ(req.size(), 1U);
   if (req[0] == kNullOp) return;
-  // MKLDNN support 2D and 4D concat
-  if ((inputs[0].shape().ndim() == 2 || inputs[0].shape().ndim() == 4)
+  if (common::ContainsOnlyStorage(inputs, kCSRStorage) &&
+      outputs[0].storage_type() == kCSRStorage) {
+    ConcatCSRImpl<cpu>(attrs, op_ctx, inputs, req, outputs);
+#if MXNET_USE_MKLDNN == 1
+  } else if ((inputs[0].shape().ndim() == 2 || inputs[0].shape().ndim() == 4)
       && inputs[0].dtype() == mshadow::kFloat32) {
     MKLDNN_OPCHECK_INIT(false, outputs.size(), inputs, outputs);
     MKLDNNConcatForward(attrs, op_ctx, inputs, req, outputs);
     MKLDNN_OPCHECK_RUN(ConcatCompute<cpu>, attrs, op_ctx, inputs, req, outputs);
-    return;
+  } else if (common::ContainsOnlyStorage(inputs, kDefaultStorage)) {
+    FallBackCompute(ConcatCompute<cpu>, attrs, op_ctx, inputs, req, outputs);
+#endif
+  } else {
+    LogUnimplementedOp(attrs, op_ctx, inputs, req, outputs);
   }
-  FallBackCompute(ConcatCompute<cpu>, attrs, op_ctx, inputs, req, outputs);
 }
 
+#if MXNET_USE_MKLDNN == 1
 static void ConcatGradComputeExCPU(const nnvm::NodeAttrs& attrs,
                                    const OpContext& ctx,
                                    const std::vector<NDArray>& inputs,
@@ -201,6 +219,8 @@ struct ConcatGrad {
 DMLC_REGISTER_PARAMETER(ConcatParam);
 
 NNVM_REGISTER_OP(Concat)
+MXNET_ADD_SPARSE_OP_ALIAS(concat)
+.add_alias("concat")
 .describe(R"code(Joins input arrays along a given axis.
 
 .. note:: `Concat` is deprecated. Use `concat` instead.
@@ -210,6 +230,11 @@ which they will be concatenated.
 The dimension of the output array along the concatenated axis will be equal
 to the sum of the corresponding dimensions of the input arrays.
 
+The storage type of ``concat`` output depends on storage types of inputs
+
+- concat(csr, csr, ..., csr, dim=0) = csr
+- otherwise, ``concat`` generates output with default storage
+
 Example::
 
    x = [[1,1],[2,2]]
@@ -261,16 +286,12 @@ Example::
 .set_attr<nnvm::FInferType>("FInferType", ConcatType)
 .set_attr<FInferStorageType>("FInferStorageType", ConcatForwardInferStorageType)
 .set_attr<FCompute>("FCompute<cpu>", ConcatCompute<cpu>)
-#if MXNET_USE_MKLDNN == 1
 .set_attr<FComputeEx>("FComputeEx<cpu>", ConcatComputeExCPU)
-#endif
 .set_attr<nnvm::FGradient>("FGradient", ConcatGrad{"_backward_Concat"})
 .set_attr<std::string>("key_var_num_args", "num_args")
 .add_argument("data", "NDArray-or-Symbol[]", "List of arrays to concatenate")
 .add_arguments(ConcatParam::__FIELDS__());
 
-NNVM_REGISTER_OP(Concat).add_alias("concat");
-
 NNVM_REGISTER_OP(_backward_Concat)
 .set_num_outputs([](const NodeAttrs& attrs) {
   const ConcatParam& params = nnvm::get<ConcatParam>(attrs.parsed);
diff --git a/src/operator/nn/concat.cu b/src/operator/nn/concat.cu
index f6bf5ece5c7..4f6b8fc9ebe 100644
--- a/src/operator/nn/concat.cu
+++ b/src/operator/nn/concat.cu
@@ -29,8 +29,26 @@
 namespace mxnet {
 namespace op {
 
+static void ConcatComputeExGPU(const nnvm::NodeAttrs& attrs,
+                               const OpContext& op_ctx,
+                               const std::vector<NDArray>& inputs,
+                               const std::vector<OpReqType>& req,
+                               const std::vector<NDArray>& outputs) {
+  CHECK(!inputs.empty());
+  CHECK_EQ(outputs.size(), 1U);
+  CHECK_EQ(req.size(), 1U);
+  if (req[0] == kNullOp) return;
+  if (common::ContainsOnlyStorage(inputs, kCSRStorage) &&
+      outputs[0].storage_type() == kCSRStorage) {
+    ConcatCSRImpl<gpu>(attrs, op_ctx, inputs, req, outputs);
+  } else {
+    LogUnimplementedOp(attrs, op_ctx, inputs, req, outputs);
+  }
+}
+
 NNVM_REGISTER_OP(Concat)
-.set_attr<FCompute>("FCompute<gpu>", ConcatCompute<gpu>);
+.set_attr<FCompute>("FCompute<gpu>", ConcatCompute<gpu>)
+.set_attr<FComputeEx>("FComputeEx<gpu>", ConcatComputeExGPU);
 
 NNVM_REGISTER_OP(_backward_Concat)
 .set_attr<FCompute>("FCompute<gpu>", ConcatGradCompute<gpu>);
diff --git a/src/operator/nn/convolution.cu b/src/operator/nn/convolution.cu
index 65a320ded16..9f61212d5c7 100644
--- a/src/operator/nn/convolution.cu
+++ b/src/operator/nn/convolution.cu
@@ -89,8 +89,11 @@ void ConvolutionCompute<gpu>(const nnvm::NodeAttrs& attrs,
   const ConvolutionParam& param = nnvm::get<ConvolutionParam>(attrs.parsed);
   int dtype = inputs[conv::kData].type_flag_;
 
-  // If 1D convolution, use MXNet implementation
-  if (param.kernel.ndim() == 1) {
+#if CUDNN_MAJOR < 5
+  if (param_.layout.value() != kNCW &&
+      param_.layout.value() != kNCHW &&
+      param_.layout.value() != kNCDHW) {
+    // Need CuDNN > 5.0 for layout support. use MXNet implementation
     MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
       ConvolutionOp<gpu, DType> op;
       op.Init(param);
@@ -98,6 +101,8 @@ void ConvolutionCompute<gpu>(const nnvm::NodeAttrs& attrs,
     })
     return;
   }
+#endif
+
 #if MXNET_USE_CUDNN == 0 || CUDNN_MAJOR < 7
   if (param.num_filter == param.num_group &&
       param.layout.value() == mshadow::kNCHW &&
@@ -162,8 +167,11 @@ void ConvolutionGradCompute<gpu>(const nnvm::NodeAttrs& attrs,
   const std::vector<TBlob> &in_grad = outputs;
   int dtype = out_grad.type_flag_;
 
-  // If 1D convolution, use MXNet implementation
-  if (param.kernel.ndim() == 1) {
+#if CUDNN_MAJOR < 5
+  if (param_.layout.value() != kNCW &&
+      param_.layout.value() != kNCHW &&
+      param_.layout.value() != kNCDHW) {
+    // Need CuDNN > 5.0 for layout support. use MXNet implementation
     MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
       ConvolutionOp<gpu, DType> op;
       op.Init(param);
@@ -171,6 +179,7 @@ void ConvolutionGradCompute<gpu>(const nnvm::NodeAttrs& attrs,
     })
     return;
   }
+#endif
 #if MXNET_USE_CUDNN == 0 || CUDNN_MAJOR < 7
   if (param.num_filter == param.num_group &&
       param.layout.value() == mshadow::kNCHW &&
diff --git a/src/operator/tensor/dot-inl.h b/src/operator/tensor/dot-inl.h
index ffdb706e5e3..675cbe8b238 100644
--- a/src/operator/tensor/dot-inl.h
+++ b/src/operator/tensor/dot-inl.h
@@ -264,11 +264,15 @@ inline bool DotForwardInferStorageType(const nnvm::NodeAttrs& attrs,
   if (!dispatched && lhs_stype == kDefaultStorage && rhs_stype == kCSRStorage &&
       !param.transpose_a) {
     target_stype = hint_has_value ? target_stype : kCSRStorage;
-    // dns, csr -> csr on CPU
-    if (dev_mask == mshadow::cpu::kDevMask && !param.transpose_b) {
-      if (target_stype == kCSRStorage) {
+    if (dev_mask == mshadow::cpu::kDevMask) {
+      // dns, csr -> csr on CPU
+      if (target_stype == kCSRStorage && !param.transpose_b) {
         dispatched = storage_type_assign(&out_stype, kCSRStorage, dispatch_mode,
                                          DispatchMode::kFComputeEx);
+      // dns, csr/csr.T -> dns on CPU
+      } else if (target_stype == kDefaultStorage) {
+        dispatched = storage_type_assign(&out_stype, kDefaultStorage, dispatch_mode,
+                                         DispatchMode::kFComputeEx);
       }
     // dns, csr/csr.T -> dns on GPU
     } else if (dev_mask == mshadow::gpu::kDevMask) {
@@ -327,7 +331,7 @@ inline bool DotBackwardInferStorageType(const nnvm::NodeAttrs& attrs,
       dispatched = true;
     }
   }
-  if (!dispatched && dev_mask == mshadow::gpu::kDevMask && !param.transpose_a &&
+  if (!dispatched && !param.transpose_a &&
       lhs_stype == kDefaultStorage && rhs_stype == kCSRStorage &&
       ograd_stype == kDefaultStorage) {
     if (type_assign(&lhs_grad_stype, kDefaultStorage) &&
@@ -655,7 +659,101 @@ struct DotDnsCsrCsrByRowBlocks {
   }
 };
 
+/*!
+ * \brief CPU Kernel of dot(dns1, csr) = dns2
+ * Parallelization by row blocks
+ */
+struct DotDnsCsrDnsByRowBlocks {
+  /*!
+   * \brief
+   * \param i           the i-th thread
+   * \param out         output matrix
+   * \param data_l      data of lhs
+   * \param data_r      values of csr
+   * \param indptr_r    row offsets of csr
+   * \param col_idx_r   column indices of csr
+   * \param seg_len     workload of this thread
+   * \param num_rows_l  number of rows in lhs
+   * \param num_cols_l  number of columns in lhs
+   * \param num_rows_r  number of rows in rhs
+   * \param num_cols_r  number of columns in rhs
+   */
+  template<typename DType, typename IType, typename CType>
+  MSHADOW_CINLINE static void Map(int i,
+                                  DType* out,
+                                  const DType* data_l,
+                                  const DType* data_r,
+                                  const IType* indptr_r,
+                                  const CType* col_idx_r,
+                                  const nnvm::dim_t seg_len,
+                                  const nnvm::dim_t num_rows_l,
+                                  const nnvm::dim_t num_cols_l,
+                                  const nnvm::dim_t num_rows_r,
+                                  const nnvm::dim_t num_cols_r) {
+    using nnvm::dim_t;
+    const dim_t seg_start = i * seg_len;
+    if (seg_start >= num_rows_l) return;
+    const dim_t seg_end = std::min(seg_start + seg_len, num_rows_l);
+    for (dim_t j = 0; j < num_rows_r; ++j) {
+      if (indptr_r[j] == indptr_r[j+1]) continue;
+      for (IType k = indptr_r[j]; k < indptr_r[j+1]; ++k) {
+        const CType col_idx = col_idx_r[k];
+        const DType val = data_r[k];
+        for (dim_t r = seg_start; r < seg_end; ++r) {
+          out[r*num_cols_r+col_idx] += data_l[r*num_cols_l+j] * val;
+        }
+      }
+    }
+  }
+};
 
+/*!
+ * \brief CPU Kernel of dot(dns1, csr.T) = dns2
+ * Parallelization by row blocks
+ */
+struct DotDnsCsrTransDnsByRowBlocks {
+  /*!
+   * \brief
+   * \param i           the i-th thread
+   * \param out         output matrix
+   * \param data_l      data of lhs
+   * \param data_r      values of csr
+   * \param indptr_r    row offsets of csr
+   * \param col_idx_r   column indices of csr
+   * \param seg_len     workload of this thread
+   * \param num_rows_l  number of rows in lhs
+   * \param num_cols_l  number of columns in lhs
+   * \param num_rows_r  number of rows in rhs
+   * \param num_cols_r  number of columns in rhs
+   */
+  template<typename DType, typename IType, typename CType>
+  MSHADOW_CINLINE static void Map(int i,
+                                  DType* out,
+                                  const DType* data_l,
+                                  const DType* data_r,
+                                  const IType* indptr_r,
+                                  const CType* col_idx_r,
+                                  const nnvm::dim_t seg_len,
+                                  const nnvm::dim_t num_rows_l,
+                                  const nnvm::dim_t num_cols_l,
+                                  const nnvm::dim_t num_rows_r,
+                                  const nnvm::dim_t num_cols_r) {
+    using nnvm::dim_t;
+    const dim_t seg_start = i * seg_len;
+    if (seg_start >= num_rows_l) return;
+    const dim_t seg_end = std::min(seg_start + seg_len, num_rows_l);
+    for (dim_t j = 0; j < num_rows_r; ++j) {
+      if (indptr_r[j] == indptr_r[j+1]) continue;
+      for (IType k = indptr_r[j]; k < indptr_r[j+1]; ++k) {
+        const CType col_idx = col_idx_r[k];
+        const DType val = data_r[k];
+        for (dim_t r = seg_start; r < seg_end; ++r) {
+          out[r*num_rows_r+j] += data_l[r*num_cols_l+col_idx] * val;
+        }
+      }
+    }
+  }
+};
 
 /*!
  * \brief CPU Impl of dot(csr, dns1) = dns2 and dot(csr.T, dns1) = dns2
@@ -1031,13 +1129,58 @@ inline void DotDnsCsrCsrImpl(const OpContext& ctx, const cpu& cpu_dev,
 }
 
 /*
- * \brief Impl of dot(dns, csr) = dense (GPU only)
+ * \brief Impl of dot(dns, csr) = dns and dot(dns, csr.T) = dns
  */
 inline void DotDnsCsrDnsImpl(const OpContext& ctx, const cpu& cpu_dev,
-                             const TBlob& dns, const NDArray& rhs,
-                             const OpReqType req, NDArray* ret,
-                             const bool transpose_b) {
-  LOG(FATAL) << "dot(dense, csr) = dense is not implemented on CPU";
+  const TBlob& dns, const NDArray& rhs,
+  const OpReqType req, NDArray* ret,
+  const bool transpose_b) {
+  if (req == kNullOp) return;
+  CHECK_EQ(rhs.storage_type(), kCSRStorage);
+  mshadow::Stream<cpu>* s = ctx.get_stream<cpu>();
+  if (!rhs.storage_initialized()) {
+    FillZerosCsrImpl(s, *ret);
+    return;
+  }
+
+  using nnvm::dim_t;
+
+  const TBlob data_r = rhs.data();
+  const TBlob indptr_r = rhs.aux_data(csr::kIndPtr);
+  const TBlob col_idx_r = rhs.aux_data(csr::kIdx);
+  const TBlob& data_l = dns;
+  const TBlob data_out = ret->data();
+
+  MSHADOW_REAL_TYPE_SWITCH(data_r.type_flag_, DType, {  // data type
+    MSHADOW_IDX_TYPE_SWITCH(indptr_r.type_flag_, IType, {  // indptr type
+      MSHADOW_IDX_TYPE_SWITCH(col_idx_r.type_flag_, CType, {  // col idx type
+        dim_t num_threads;
+        if (req == kWriteTo || req == kWriteInplace) {
+          num_threads = data_out.Size();
+          mxnet_op::Kernel<mxnet_op::set_zero, cpu>::Launch(
+              s, num_threads, data_out.dptr<DType>());
+        }
+        num_threads = mxnet_op::get_num_threads<cpu>(data_out.shape_[0]);
+        // seg by output row
+        dim_t seg_len = (data_out.shape_[0] + num_threads - 1) / num_threads;
+        if (transpose_b) {
+          mxnet_op::Kernel<DotDnsCsrTransDnsByRowBlocks, cpu>::Launch(s, num_threads,
+              data_out.dptr<DType>(), data_l.dptr<DType>(),
+              data_r.dptr<DType>(), indptr_r.dptr<IType>(),
+              col_idx_r.dptr<CType>(), seg_len,
+              dns.shape_[0], dns.shape_[1],
+              rhs.shape()[0], rhs.shape()[1]);
+        } else {
+          mxnet_op::Kernel<DotDnsCsrDnsByRowBlocks, cpu>::Launch(s, num_threads,
+              data_out.dptr<DType>(), data_l.dptr<DType>(),
+              data_r.dptr<DType>(), indptr_r.dptr<IType>(),
+              col_idx_r.dptr<CType>(), seg_len,
+              dns.shape_[0], dns.shape_[1],
+              rhs.shape()[0], rhs.shape()[1]);
+        }
+      });
+    });
+  });
 }
 
 inline bool DotShape(const nnvm::NodeAttrs& attrs,
diff --git a/src/operator/tensor/dot.cc b/src/operator/tensor/dot.cc
index 2f44f536397..556fd1fea56 100644
--- a/src/operator/tensor/dot.cc
+++ b/src/operator/tensor/dot.cc
@@ -60,8 +60,8 @@ forward_stype option for output storage type. Implemented sparse operations incl
 - dot(csr, default) = default
 - dot(csr, row_sparse) = default
 - dot(default, csr) = csr (CPU only)
-- dot(default, csr, forward_stype='default') = default (GPU only)
-- dot(default, csr, transpose_b=True, forward_stype='default') = default (GPU only)
+- dot(default, csr, forward_stype='default') = default
+- dot(default, csr, transpose_b=True, forward_stype='default') = default
 
 If the combination of input storage types and forward_stype does not match any of the
 above patterns, ``dot`` will fallback and generate output with default storage.
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op.h b/src/operator/tensor/elemwise_binary_broadcast_op.h
index 933d0be4658..e5b77e11283 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op.h
+++ b/src/operator/tensor/elemwise_binary_broadcast_op.h
@@ -88,16 +88,13 @@ inline bool BinaryBroadcastMulStorageType(const nnvm::NodeAttrs& attrs,
   const int rhs_stype = in_attrs->at(1);
   int& out_stype = out_attrs->at(0);
   bool dispatched = false;
-  // For GPU, directly fallback
-  const auto dispatch_ex = (dev_mask == mshadow::gpu::kDevMask)? DispatchMode::kFComputeFallback :
-                           DispatchMode::kFComputeEx;
   if (!dispatched && common::ContainsOnlyStorage(*in_attrs, kDefaultStorage)) {
     dispatched = storage_type_assign(&out_stype, kDefaultStorage,
                                      dispatch_mode, DispatchMode::kFCompute);
   }
   if (!dispatched && lhs_stype == kCSRStorage && rhs_stype == kDefaultStorage) {
     dispatched = storage_type_assign(&out_stype, kCSRStorage,
-                                     dispatch_mode, dispatch_ex);
+                                     dispatch_mode, DispatchMode::kFComputeEx);
   }
   if (!dispatched) {
     dispatched = dispatch_fallback(out_attrs, dispatch_mode);
@@ -229,12 +226,20 @@ struct binary_broadcast_kernel {
   }
 };
 
-template<int req, typename OP>
+template<int req, typename OP, bool col_vec>
 struct csr_dns_csr_broadcast_kernel {
-  template <typename DType, typename CType, typename RType>
+  /*!
+   * \brief Map function for broadcast between csr and 1D vector
+   * \param row          global thread id/assigned row id
+   * \param csr_data     ptr to data buffer of csr matrix
+   * \param csr_indices  ptr to indices buffer of csr matrix
+   * \param csr_indptr   ptr to indptr buffer of csr matrix
+   * \param dns          ptr to data buffer of the dense vector
+   * \param out          ptr to the data buffer of the result csr matrix
+   */
+  template<typename DType, typename CType, typename RType>
   MSHADOW_XINLINE static void Map(int row, const DType *csr_data, const CType *csr_indices,
-                                  const RType *csr_indptr, const DType *dns,
-                                  DType *out, const nnvm::dim_t row_length, bool col_vec) {
+                                  const RType *csr_indptr, const DType *dns, DType *out) {
     const nnvm::dim_t curr_row_i = csr_indptr[row];
     const nnvm::dim_t next_row_i = csr_indptr[row + 1];
     for (nnvm::dim_t iter = curr_row_i; iter < next_row_i; iter++) {
@@ -242,6 +247,23 @@ struct csr_dns_csr_broadcast_kernel {
                     (col_vec)? dns[row] : dns[csr_indices[iter]]));
     }
   }
+
+  /*!
+   * \brief Map function for broadcast between csr and a scalar
+   * \param i           global thread id
+   * \param csr_data    ptr to data buffer of csr matrix
+   * \param scalar_ptr  ptr to data buffer of the scalar tensor, only the 0-th element is used
+   * \param out         ptr to the data buffer of output csr matrix
+   * \param nnz         number of non-zero elements in input csr matrix
+   */
+  template<typename DType>
+  MSHADOW_XINLINE static void Map(int i, const DType *csr_data, const DType* scalar_ptr,
+                                  DType *out, const nnvm::dim_t nnz) {
+    const DType scale = scalar_ptr[0];
+    if (i < nnz) {
+      KERNEL_ASSIGN(out[i], req, OP::Map(csr_data[i], scale));
+    }
+  }
 };
 
 template<int req, typename OP, bool reverse = false>
@@ -320,21 +342,31 @@ void BinaryBroadcastCsrDnsCsrImpl(const OpContext& ctx,
       MSHADOW_IDX_TYPE_SWITCH(output.aux_type(kIdx), CType, {
         MSHADOW_IDX_TYPE_SWITCH(output.aux_type(kIndPtr), RType, {
           MXNET_ASSIGN_REQ_SWITCH(req, req_type, {
+            // broadcast_mul/div between csr and a scalar case
             if ((dns.shape().ndim() == 2 && dns.shape()[0] == 1 && dns.shape()[1] == 1) ||
                 (dns.shape().ndim() == 1 && dns.shape()[0] == 1)) {
-              Kernel<op_with_req<OP, req_type>, xpu>::Launch(
-                s, nnz, output.data().dptr<DType>(), csr.data().dptr<DType>(),
-                dns.data().dptr<DType>()[0]);
+              Kernel<csr_dns_csr_broadcast_kernel<req_type, OP, false>, xpu>::Launch(
+                s, nnz, csr.data().dptr<DType>(), dns.data().dptr<DType>(),
+                output.data().dptr<DType>(), nnz);
             } else {
-              Kernel<csr_dns_csr_broadcast_kernel<req_type, OP>, xpu>::Launch(
-                s, num_rows, csr.data().dptr<DType>(), csr.aux_data(kIdx).dptr<CType>(),
-                csr.aux_data(kIndPtr).dptr<RType>(), dns.data().dptr<DType>(),
-                output.data().dptr<DType>(), csr.shape()[1], col_vec);
+              // broadcast_mul/div between csr and column vector
+              if (col_vec) {
+                Kernel<csr_dns_csr_broadcast_kernel<req_type, OP, true>, xpu>::Launch(
+                  s, num_rows, csr.data().dptr<DType>(), csr.aux_data(kIdx).dptr<CType>(),
+                  csr.aux_data(kIndPtr).dptr<RType>(), dns.data().dptr<DType>(),
+                  output.data().dptr<DType>());
+              // broadcast_mul/div between csr and row vector
+              } else {
+                Kernel<csr_dns_csr_broadcast_kernel<req_type, OP, false>, xpu>::Launch(
+                  s, num_rows, csr.data().dptr<DType>(), csr.aux_data(kIdx).dptr<CType>(),
+                  csr.aux_data(kIndPtr).dptr<RType>(), dns.data().dptr<DType>(),
+                  output.data().dptr<DType>());
+              }
             }
             Copy(output.aux_data(kIdx).FlatTo1D<xpu, CType>(),
-                 csr.aux_data(kIdx).FlatTo1D<xpu, CType>());
+                 csr.aux_data(kIdx).FlatTo1D<xpu, CType>(), s);
             Copy(output.aux_data(kIndPtr).FlatTo1D<xpu, RType>(),
-                 csr.aux_data(kIndPtr).FlatTo1D<xpu, RType>());
+                 csr.aux_data(kIndPtr).FlatTo1D<xpu, RType>(), s);
           });
         });
       });
@@ -432,10 +464,12 @@ void BinaryBroadcastComputeSparseEx(const nnvm::NodeAttrs& attrs,
   const auto out_stype = out.storage_type();
   // If the input is a matrix with the same shape, should be elemwise
   if ((rhs.shape().ndim() != 1U) && (rhs.shape()[0] != 1) && (rhs.shape()[1] != 1)) {
-    // Currently do not support elementwise_mul/div(csr, dense) = csr, log and exit
-    using common::operator_string;
-    LOG(FATAL) << operator_string(attrs, ctx, inputs, req, outputs)
-               << "\nIf shape of lhs and rhs match, please explicitly use elemwise_mul/div\n";
+    if (lhs_stype == kCSRStorage && rhs_stype == kDefaultStorage && out_stype == kCSRStorage) {
+      const bool supported_op = std::is_same<OP, mshadow_op::mul>::value;
+      CHECK(supported_op)
+        << "Please use elemwise_div for division between csr and dense of the same shape";
+      ElemwiseBinaryOp::DnsCsrCsrOp<xpu, mshadow_op::mul>(attrs, ctx, rhs, lhs, req[0], out, true);
+    }
   } else {
     // broadcast(CSR, Dense(1D)) = CSR
     if (lhs_stype == kCSRStorage && rhs_stype == kDefaultStorage && out_stype == kCSRStorage) {
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
index 61bc94e4df1..7301eced179 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
@@ -141,7 +141,7 @@ Example::
 
 Supported sparse operations:
 
-   broadcast_mul(csr, dense(1D)) = csr (CPU only)
+   broadcast_mul(csr, dense(1D)) = csr
 
 )code" ADD_FILELINE)
 .set_attr<FCompute>("FCompute<cpu>", BinaryBroadcastCompute<cpu, op::mshadow_op::mul>)
@@ -182,7 +182,7 @@ Example::
 
 Supported sparse operations:
 
-   broadcast_div(csr, dense(1D)) = csr (CPU only)
+   broadcast_div(csr, dense(1D)) = csr
 
 )code" ADD_FILELINE)
 .set_attr<FCompute>("FCompute<cpu>", BinaryBroadcastCompute<cpu, op::mshadow_op::div>)
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
index 976f09152a3..a00330d2446 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
@@ -45,14 +45,16 @@ NNVM_REGISTER_OP(_backward_broadcast_sub)
                                                                 mshadow_op::negation>);
 
 NNVM_REGISTER_OP(broadcast_mul)
-.set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastCompute<gpu, op::mshadow_op::mul>);
+.set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastCompute<gpu, op::mshadow_op::mul>)
+.set_attr<FComputeEx>("FComputeEx<gpu>", BinaryBroadcastComputeSparseEx<gpu, op::mshadow_op::mul>);
 
 NNVM_REGISTER_OP(_backward_broadcast_mul)
 .set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastBackwardUseIn<gpu, mshadow_op::right,
                                                                 mshadow_op::left>);
 
 NNVM_REGISTER_OP(broadcast_div)
-.set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastCompute<gpu, op::mshadow_op::div>);
+.set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastCompute<gpu, op::mshadow_op::div>)
+.set_attr<FComputeEx>("FComputeEx<gpu>", BinaryBroadcastComputeSparseEx<gpu, op::mshadow_op::div>);
 
 NNVM_REGISTER_OP(_backward_broadcast_div)
 .set_attr<FCompute>("FCompute<gpu>", BinaryBroadcastBackwardUseIn<gpu, mshadow_op::div_grad,
diff --git a/src/operator/tensor/indexing_op.cu b/src/operator/tensor/indexing_op.cu
index 593593ae4e3..b0ee05ea139 100644
--- a/src/operator/tensor/indexing_op.cu
+++ b/src/operator/tensor/indexing_op.cu
@@ -188,7 +188,8 @@ void SparseEmbeddingDeterministicKernelLaunch(const OpContext& ctx,
   // estimate unique temp space
   IType* data_ptr = data.dptr<IType>();
   size_t *null_ptr = nullptr;
-  cub::DeviceSelect::Unique(NULL, unique_workspace_bytes, data_ptr, data_ptr,
+  // unique operations will be applied on sorted data
+  cub::DeviceSelect::Unique(NULL, unique_workspace_bytes, sorted_data, sorted_data,
     null_ptr, data_size, Stream<gpu>::GetStream(s));
   // One more space reserved for unique count
   size_t temp_workspace_bytes = std::max(unique_workspace_bytes,
diff --git a/tests/python/unittest/test_contrib_operator.py b/tests/python/unittest/test_contrib_operator.py
index 5618e11a040..a220f08d20d 100644
--- a/tests/python/unittest/test_contrib_operator.py
+++ b/tests/python/unittest/test_contrib_operator.py
@@ -26,20 +26,20 @@
 import unittest
 
 def test_box_nms_op():
-    def test_box_nms_forward(data, expected, thresh=0.5, topk=-1, coord=2, score=1, cid=0,
+    def test_box_nms_forward(data, expected, thresh=0.5, valid=0, topk=-1, coord=2, score=1, cid=0,
                          force=False, in_format='corner', out_format='corner'):
         data = mx.nd.array(data)
-        out = mx.contrib.nd.box_nms(data, overlap_thresh=thresh, topk=topk,
+        out = mx.contrib.nd.box_nms(data, overlap_thresh=thresh, valid_thresh=valid, topk=topk,
                                 coord_start=coord, score_index=score, id_index=cid,
                                 force_suppress=force, in_format=in_format, out_format=out_format)
         assert_almost_equal(out.asnumpy(), expected)
 
-    def test_box_nms_backward(data, grad, expected, thresh=0.5, topk=-1, coord=2, score=1,
+    def test_box_nms_backward(data, grad, expected, thresh=0.5, valid=0, topk=-1, coord=2, score=1,
                           cid=0, force=False, in_format='corner', out_format='corner'):
         in_var = mx.sym.Variable('data')
         arr_data = mx.nd.array(data)
         arr_grad = mx.nd.empty(arr_data.shape)
-        op = mx.contrib.sym.box_nms(in_var, overlap_thresh=thresh, topk=topk,
+        op = mx.contrib.sym.box_nms(in_var, overlap_thresh=thresh, valid_thresh=valid, topk=topk,
                                 coord_start=coord, score_index=score, id_index=cid,
                                 force_suppress=force, in_format=in_format, out_format=out_format)
         exe = op.bind(ctx=default_context(), args=[arr_data], args_grad=[arr_grad])
@@ -158,6 +158,23 @@ def swap_position(data, expected, coord=2, score=1, cid=0, new_col=0):
     thresh = 0.5
     test_box_nms_forward(np.array(boxes), np.array(expected), force=force, thresh=thresh, cid=-1)
 
+    # case8: multi-batch thresh + topk
+    boxes8 = [[[1, 1, 0, 0, 10, 10], [1, 0.4, 0, 0, 10, 10], [1, 0.3, 0, 0, 10, 10]],
+              [[2, 1, 0, 0, 10, 10], [2, 0.4, 0, 0, 10, 10], [2, 0.3, 0, 0, 10, 10]],
+              [[3, 1, 0, 0, 10, 10], [3, 0.4, 0, 0, 10, 10], [3, 0.3, 0, 0, 10, 10]]]
+    expected8 = [[[1, 1, 0, 0, 10, 10], [-1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1]],
+                 [[2, 1, 0, 0, 10, 10], [-1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1]],
+                 [[3, 1, 0, 0, 10, 10], [-1, -1, -1, -1, -1, -1], [-1, -1, -1, -1, -1, -1]]]
+    grad8 = np.random.rand(3, 3, 6)
+    expected_in_grad8 = np.zeros((3, 3, 6))
+    expected_in_grad8[(0, 1, 2), (0, 0, 0), :] = grad8[(0, 1, 2), (0, 0, 0), :]
+    force = False
+    thresh = 0.5
+    valid = 0.5
+    topk = 2
+    test_box_nms_forward(np.array(boxes8), np.array(expected8), force=force, thresh=thresh, valid=valid, topk=topk)
+    test_box_nms_backward(np.array(boxes8), grad8, expected_in_grad8, force=force, thresh=thresh, valid=valid, topk=topk)
+
 def test_box_iou_op():
     def numpy_box_iou(a, b, fmt='corner'):
         def area(left, top, right, bottom):
diff --git a/tests/python/unittest/test_gluon.py b/tests/python/unittest/test_gluon.py
index bf1e0deb200..ced3063448b 100644
--- a/tests/python/unittest/test_gluon.py
+++ b/tests/python/unittest/test_gluon.py
@@ -753,8 +753,22 @@ def check_embedding(sparse_grad):
             y.backward()
         assert (layer.weight.grad().asnumpy()[:5] == 1).all()
         assert (layer.weight.grad().asnumpy()[5:] == 0).all()
+
+    def check_embedding_large_input(sparse_grad):
+        embedding = mx.gluon.nn.Embedding(10, 1, sparse_grad=True)
+        embedding.initialize()
+        embedding.hybridize()
+        shape = (20481,)
+        with mx.autograd.record():
+            emb_in = embedding(mx.nd.ones(shape))
+            loss = emb_in.sum()
+        loss.backward()
+        assert embedding.weight.grad().data.sum().asscalar() == 20481
+
     check_embedding(True)
     check_embedding(False)
+    check_embedding_large_input(True)
+    check_embedding_large_input(False)
 
 @with_seed()
 def test_export():
diff --git a/tests/python/unittest/test_gluon_contrib.py b/tests/python/unittest/test_gluon_contrib.py
index 729ec8407f2..264ff1f5e53 100644
--- a/tests/python/unittest/test_gluon_contrib.py
+++ b/tests/python/unittest/test_gluon_contrib.py
@@ -19,7 +19,7 @@
 import mxnet as mx
 from mxnet.gluon import contrib
 from mxnet.gluon import nn
-from mxnet.gluon.contrib.nn import Concurrent, HybridConcurrent, Identity
+from mxnet.gluon.contrib.nn import Concurrent, HybridConcurrent, Identity, SparseEmbedding
 from mxnet.test_utils import almost_equal
 from common import setup_module, with_seed
 import numpy as np
@@ -185,13 +185,25 @@ def test_concurrent():
     x.wait_to_read()
     x2.wait_to_read()
 
-
+@with_seed()
 def test_identity():
     model = Identity()
     x = mx.nd.random.uniform(shape=(128, 33, 64))
     mx.test_utils.assert_almost_equal(model(x).asnumpy(),
                                       x.asnumpy())
 
+@with_seed()
+def test_sparse_embedding():
+    layer = SparseEmbedding(10, 100)
+    layer.initialize()
+    trainer = mx.gluon.Trainer(layer.collect_params(), 'sgd')
+    x = mx.nd.array([3,4,2,0,1])
+    with mx.autograd.record():
+        y = layer(x)
+        y.backward()
+    assert (layer.weight.grad().asnumpy()[:5] == 1).all()
+    assert (layer.weight.grad().asnumpy()[5:] == 0).all()
+
 def test_datasets():
     wikitext2_train = contrib.data.text.WikiText2(root='data/wikitext-2', segment='train')
     wikitext2_val = contrib.data.text.WikiText2(root='data/wikitext-2', segment='validation',
diff --git a/tests/python/unittest/test_gluon_utils.py b/tests/python/unittest/test_gluon_utils.py
new file mode 100644
index 00000000000..a5d3b1401a3
--- /dev/null
+++ b/tests/python/unittest/test_gluon_utils.py
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import os
+import tempfile
+
+import mxnet as mx
+from nose.tools import *
+
+
+@raises(Exception)
+def test_download_retries():
+    mx.gluon.utils.download("http://doesnotexist.notfound")
+
+def test_download_successful():
+    tmp = tempfile.mkdtemp()
+    tmpfile = os.path.join(tmp, 'README.md')
+    mx.gluon.utils.download("https://raw.githubusercontent.com/apache/incubator-mxnet/master/README.md",
+                            path=tmpfile)
+    assert os.path.getsize(tmpfile) > 100
\ No newline at end of file
diff --git a/tests/python/unittest/test_ndarray.py b/tests/python/unittest/test_ndarray.py
index a0604658ee1..be14822384b 100644
--- a/tests/python/unittest/test_ndarray.py
+++ b/tests/python/unittest/test_ndarray.py
@@ -711,9 +711,8 @@ def get_values(ensure_unique):
                  k=dat_size*dat_size*dat_size*dat_size, is_ascend=False)
     assert_almost_equal(nd_ret_argsort, gt)
 
-    # test topk with a big shape
-    a = mx.nd.arange(0, 54686454, step=1, repeat=1)
-    assert_almost_equal(a.topk(k=54686454).asnumpy(), a.asnumpy()[::-1])
+    a = mx.nd.arange(0, 1024, step=1, repeat=1)
+    assert_almost_equal(a.topk(k=1024).asnumpy(), a.asnumpy()[::-1])
 
     # Repeat those tests that don't involve indices.  These should pass even with
     # duplicated input data values (over many repeated runs with different random seeds,
@@ -1304,6 +1303,13 @@ def test_norm(ctx=default_context()):
             assert arr1.shape == arr2.shape
             mx.test_utils.assert_almost_equal(arr1, arr2.asnumpy())
 
+@with_seed()
+def test_ndarray_cpu_shared_ctx():
+    ctx = mx.Context('cpu_shared', 0)
+    res = mx.nd.zeros((1, 2, 3), ctx=ctx)
+    assert(res.context == ctx)
+
+
 if __name__ == '__main__':
     import nose
     nose.runmodule()
diff --git a/tests/python/unittest/test_random.py b/tests/python/unittest/test_random.py
index 40723b270a3..7abbc9918c5 100644
--- a/tests/python/unittest/test_random.py
+++ b/tests/python/unittest/test_random.py
@@ -293,31 +293,22 @@ def test_random_seed_setting_for_context():
         samples_imp = []
         samples_sym = []
         # Collect random number samples from the generators of all devices, each seeded with the same number.
-        for dev_id in range(0, 16 if dev_type == 'gpu' else 1):
-            # Currently python API does not provide a method to get the number of gpu devices.
-            # Waiting for PR #10354, which provides the method, to be merged.
-            # As a temporal workaround, try first and catch the exception caused by the absence of the device with `dev_id`.
-            try:
-                with mx.Context(dev_type, dev_id):
-                    ctx = mx.context.current_context()
-                    seed = set_seed_variously_for_context(ctx, 1, num_temp_seeds, seed_to_test)
-
-                    # Check imperative. `multinomial` uses non-parallel rng.
-                    rnds = mx.nd.random.multinomial(data=mx.nd.array(probs, dtype=dtype), shape=num_samples)
-                    samples_imp.append(rnds.asnumpy())
-
-                    # Check symbolic. `multinomial` uses non-parallel rng.
-                    P = mx.sym.Variable("P")
-                    X = mx.sym.random.multinomial(data=P, shape=num_samples, get_prob=False)
-                    exe = X.bind(ctx, {"P": mx.nd.array(probs, dtype=dtype)})
-                    set_seed_variously_for_context(ctx, seed, num_temp_seeds, seed_to_test)
-                    exe.forward()
-                    samples_sym.append(exe.outputs[0].asnumpy())
-            except mx.MXNetError as e:
-                if str(e).find("invalid device ordinal") != -1:
-                    break
-                else:
-                    raise e
+        for dev_id in range(0, mx.context.num_gpus() if dev_type == 'gpu' else 1):
+            with mx.Context(dev_type, dev_id):
+                ctx = mx.context.current_context()
+                seed = set_seed_variously_for_context(ctx, 1, num_temp_seeds, seed_to_test)
+
+                # Check imperative. `multinomial` uses non-parallel rng.
+                rnds = mx.nd.random.multinomial(data=mx.nd.array(probs, dtype=dtype), shape=num_samples)
+                samples_imp.append(rnds.asnumpy())
+
+                # Check symbolic. `multinomial` uses non-parallel rng.
+                P = mx.sym.Variable("P")
+                X = mx.sym.random.multinomial(data=P, shape=num_samples, get_prob=False)
+                exe = X.bind(ctx, {"P": mx.nd.array(probs, dtype=dtype)})
+                set_seed_variously_for_context(ctx, seed, num_temp_seeds, seed_to_test)
+                exe.forward()
+                samples_sym.append(exe.outputs[0].asnumpy())
         # The samples should be identical across different gpu devices.
         for i in range(1, len(samples_imp)):
             assert same(samples_imp[i - 1], samples_imp[i])
@@ -333,42 +324,33 @@ def test_parallel_random_seed_setting_for_context():
         samples_imp = []
         samples_sym = []
         # Collect random number samples from the generators of all devices, each seeded with the same number.
-        for dev_id in range(0, 16 if dev_type == 'gpu' else 1):
-            # Currently python API does not provide a method to get the number of gpu devices.
-            # Waiting for PR #10354, which provides the method, to be merged.
-            # As a temporal workaround, try first and catch the exception caused by the absence of the device with `dev_id`.
-            try:
-                with mx.Context(dev_type, dev_id):
-                    ctx = mx.context.current_context()
-                    # Avoid excessive test cpu runtimes.
-                    num_temp_seeds = 25 if dev_type == 'gpu' else 1
-                    # To flush out a possible race condition, run multiple times.
-                    for _ in range(20):
-                        # Create enough samples such that we get a meaningful distribution.
-                        shape = (200, 200)
-                        params = { 'low': -1.5, 'high': 3.0 }
-                        params.update(shape=shape, dtype=dtype)
-
-                        # Check imperative. `uniform` uses parallel rng.
-                        seed = set_seed_variously_for_context(ctx, 1, num_temp_seeds, seed_to_test)
-                        rnds = mx.nd.random.uniform(**params)
-                        samples_imp.append(rnds.asnumpy())
-
-                        # Check symbolic. `uniform` uses parallel rng.
-                        X = mx.sym.Variable("X")
-                        Y = mx.sym.random.uniform(**params) + X
-                        x = mx.nd.zeros(shape, dtype=dtype)
-                        xgrad = mx.nd.zeros(shape, dtype=dtype)
-                        yexec = Y.bind(ctx, {'X' : x}, {'X': xgrad})
-                        set_seed_variously_for_context(ctx, seed, num_temp_seeds, seed_to_test)
-                        yexec.forward(is_train=True)
-                        yexec.backward(yexec.outputs[0])
-                        samples_sym.append(yexec.outputs[0].asnumpy())
-            except mx.MXNetError as e:
-                if str(e).find("invalid device ordinal") != -1:
-                    break
-                else:
-                    raise e
+        for dev_id in range(0, mx.context.num_gpus() if dev_type == 'gpu' else 1):
+            with mx.Context(dev_type, dev_id):
+                ctx = mx.context.current_context()
+                # Avoid excessive test cpu runtimes.
+                num_temp_seeds = 25 if dev_type == 'gpu' else 1
+                # To flush out a possible race condition, run multiple times.
+                for _ in range(20):
+                    # Create enough samples such that we get a meaningful distribution.
+                    shape = (200, 200)
+                    params = { 'low': -1.5, 'high': 3.0 }
+                    params.update(shape=shape, dtype=dtype)
+
+                    # Check imperative. `uniform` uses parallel rng.
+                    seed = set_seed_variously_for_context(ctx, 1, num_temp_seeds, seed_to_test)
+                    rnds = mx.nd.random.uniform(**params)
+                    samples_imp.append(rnds.asnumpy())
+
+                    # Check symbolic. `uniform` uses parallel rng.
+                    X = mx.sym.Variable("X")
+                    Y = mx.sym.random.uniform(**params) + X
+                    x = mx.nd.zeros(shape, dtype=dtype)
+                    xgrad = mx.nd.zeros(shape, dtype=dtype)
+                    yexec = Y.bind(ctx, {'X' : x}, {'X': xgrad})
+                    set_seed_variously_for_context(ctx, seed, num_temp_seeds, seed_to_test)
+                    yexec.forward(is_train=True)
+                    yexec.backward(yexec.outputs[0])
+                    samples_sym.append(yexec.outputs[0].asnumpy())
         # The samples should be identical across different gpu devices.
         for i in range(1, len(samples_imp)):
             assert same(samples_imp[i - 1], samples_imp[i])
diff --git a/tests/python/unittest/test_sparse_ndarray.py b/tests/python/unittest/test_sparse_ndarray.py
index 1ed5080e1c1..c90fb1317fe 100644
--- a/tests/python/unittest/test_sparse_ndarray.py
+++ b/tests/python/unittest/test_sparse_ndarray.py
@@ -155,6 +155,23 @@ def check_slice_nd_csr_fallback(shape):
     check_slice_nd_csr_fallback(shape)
 
 
+@with_seed()
+def test_sparse_nd_concat():
+    def check_concat(arrays):
+        ret = np.concatenate([arr.asnumpy() for arr in arrays], axis=0)
+        same(mx.nd.concat(*arrays, dim=0).asnumpy(), ret)
+    nds = []
+    zero_nds = []
+    ncols = rnd.randint(2, 10)
+    for i in range(3):
+        shape = (rnd.randint(2, 10), ncols)
+        A, _ = rand_sparse_ndarray(shape, 'csr')
+        nds.append(A)
+        zero_nds.append(mx.nd.zeros(shape).tostype('csr'))
+    check_concat(nds)
+    check_concat(zero_nds)
+
+
 @with_seed()
 def test_sparse_nd_equal():
     for stype in ['row_sparse', 'csr']:
diff --git a/tests/python/unittest/test_test_utils.py b/tests/python/unittest/test_test_utils.py
new file mode 100644
index 00000000000..49f0b932fdd
--- /dev/null
+++ b/tests/python/unittest/test_test_utils.py
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import os
+import tempfile
+
+import mxnet as mx
+from nose.tools import *
+
+
+@raises(Exception)
+def test_download_retries():
+    mx.test_utils.download("http://doesnotexist.notfound")
+
+def test_download_successful():
+    tmp = tempfile.mkdtemp()
+    tmpfile = os.path.join(tmp, 'README.md')
+    mx.test_utils.download("https://raw.githubusercontent.com/apache/incubator-mxnet/master/README.md",
+                           fname=tmpfile)
+    assert os.path.getsize(tmpfile) > 100
\ No newline at end of file


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services