Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-1083] Add the example to demonstrate the inference workflow using C++ API. #12930

Closed
wants to merge 130 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
b75ba80
Add the example to demonstrate the inference workflow.
leleamol Oct 22, 2018
4bba0bf
Add the example to demonstrate the inference workflow.
leleamol Oct 22, 2018
c76a2e4
Fixed the example to no load synset file if not specified.
leleamol Oct 23, 2018
73dd4fc
Merge branch 'inception-inference' of https://github.com/leleamol/inc…
leleamol Oct 23, 2018
0874677
Ignore generated scala files. (#12928)
frankfliu Oct 23, 2018
6b4df85
use ResourceScope in Model/Trainer/FeedForward.scala (#12882)
nswamy Oct 23, 2018
7d0f7d6
Disabled flaky test: test_gluon_gpu.test_slice_batchnorm_reshape_batc…
lebeg Oct 24, 2018
af55104
Fix the operator API documentation (#12942)
apeforest Oct 24, 2018
9121d68
Made the load methods private, added code to print the last error mes…
leleamol Oct 24, 2018
57176cd
fix indpt[0] for take(csr) (#12927)
eric-haibin-lin Oct 24, 2018
1b96fc9
getnnz operator for CSR matrix (#12908)
eric-haibin-lin Oct 24, 2018
50028e9
fix broken docs (#12871)
aaronmarkham Oct 24, 2018
04c8b40
Organized the code as per feedback. The interface for Predict class i…
leleamol Oct 25, 2018
96df2c5
Add bytearray support back to imdecode (#12855, #12868) (#12912)
frankfliu Oct 25, 2018
d93467e
Update tree lstm example (#12960)
ThomasDelteil Oct 25, 2018
a39152b
Update bilstm integer array sorting example (#12929)
ThomasDelteil Oct 25, 2018
ffe551e
Fix the bug of assigning large integer to NDArray (#12921)
apeforest Oct 25, 2018
fef9b5c
Refactor mkldnn test files (#12410)
azai91 Oct 26, 2018
ee5f699
CudnnFind() usage improvements (#12804)
DickJC123 Oct 26, 2018
ffeaf31
fix mac r install and windows python build from source docs (#12919)
aaronmarkham Oct 26, 2018
2f6d224
enable batchnorm unit tests (#12986)
roywei Oct 27, 2018
148819b
Update CONTRIBUTORS.md (#12996)
rahul3 Oct 28, 2018
1555735
fix Sphinx errors for tutorials and install ToCs (#12945)
aaronmarkham Oct 29, 2018
1f971c2
[MXNET -1030] Cosine Embedding Loss (#12750)
gaurav-gireesh Oct 29, 2018
a362df1
[MXNET-1173] Debug operators - isfinite, isinf and isnan (#12967)
ChaiBapchya Oct 29, 2018
12371fb
[MXNET-1111] Remove CPUPinned in ImageRecordIter (#12666)
ctcyang Oct 29, 2018
a9ac9d1
Added/changed file_name, brief description comments in some files (#1…
ChaiBapchya Oct 30, 2018
afbb72f
sample_like operators (#13034)
szha Oct 30, 2018
7b787d3
[MXNET-1179] Enforce deterministic algorithms in convolution layers (…
apeforest Oct 30, 2018
71d6621
Add a deprecate message (#13042)
apeforest Oct 30, 2018
03c4020
Disable flaky test test_operator.test_dropout (#13057)
Chancebair Oct 31, 2018
8209712
Disable flaky test test_prelu (#13060)
Chancebair Oct 31, 2018
49e6a7e
la_op_inline.h to la_op-inl.h for consistency (#13045)
ChaiBapchya Oct 31, 2018
0844d4b
Improve clojure tutorial (#12974)
daveliepmann Oct 31, 2018
13ad595
removed unused header (#13066)
apeforest Oct 31, 2018
1e16cf6
Moves f16c autodetection to its own cmake module (#12331)
perdasilva Nov 1, 2018
5bd6f10
Set correct update on kvstore flag in dist_device_sync mode (#12786)
sandeep-krishnamurthy Nov 1, 2018
0bea50e
ONNX export: Cleanup (#12878)
vandanavk Nov 1, 2018
d242f3b
Maven Surefire bug workaround (#13081)
zachgk Nov 1, 2018
24d4903
remove legacy installation of Roxygen2 5.0 and add R-specific clean t…
shadogray Nov 1, 2018
1ccffde
Gluon LSTM Projection and Clipping Support (#13056)
szha Nov 2, 2018
4830744
fix readme (#13082)
lanking520 Nov 2, 2018
6535c06
[MXNET-1180] Scala Image API (#12995)
lanking520 Nov 2, 2018
b78265b
[MXNET-793] Virtual testing with Qemu, refinement and extract test re…
larroy Nov 2, 2018
3e8a976
Updated / Deleted some examples (#12968)
ThomasDelteil Nov 2, 2018
50f43f0
Fix variable name in tutorial code snippet (#13052)
wongjoel Nov 2, 2018
31ebb95
customized take forward for CPU (#12997)
HyperZealot Nov 4, 2018
976fd00
Update module example (#12961)
ThomasDelteil Nov 4, 2018
f5cef48
ONNX export: Scalar, Reshape - Set appropriate tensor type (#13067)
vandanavk Nov 4, 2018
974a04c
Fix example for mxnet.nd.contrib.cond and fix typo in src/engine (#12…
wkcn Nov 4, 2018
a91b364
Improve the Clojure Package README to Make it Easier to Get Started (…
gigasquid Nov 4, 2018
53c5a72
[MXNET-918] Introduce Random module / Refact code generation (#13038)
mdespriee Nov 5, 2018
b645f41
Fix a typo in operator guide (#13115)
apeforest Nov 5, 2018
8f6efe3
[Issue #11912] throw mxnet exceptions when decoding invalid images. (…
lgov Nov 5, 2018
722ad7a
Update adversary attack generation example (#12918)
ThomasDelteil Nov 6, 2018
94676b0
Disable travis tests (#13137)
marcoabreu Nov 6, 2018
c169b14
Update Gluon example folder (#12951)
ThomasDelteil Nov 6, 2018
91c1f82
Document the newly added env variable (#13049)
apeforest Nov 6, 2018
6e6663b
Updated CONTRIBUTORS.md to include mxnet-label-bot (#13048)
mxnet-label-bot Nov 6, 2018
f8052e4
Fix docker cleanup race condition (#13092)
Chancebair Nov 7, 2018
6c4bbd8
Improved git reset for CI builds (#12784)
lebeg Nov 7, 2018
36eabfa
Refactor L2_normalization (#13059)
ZhennanQin Nov 7, 2018
466c488
Fix variational autoencoder example (#12880)
anirudhacharya Nov 7, 2018
088ae79
Add documentation on GPU performance on Quantization example (#13145)
kalyc Nov 7, 2018
5d6a7ac
[MXNET-1194] Reenable nightly tutorials tests for Python2 and Python3…
ThomasDelteil Nov 7, 2018
498e03d
Update dec example (#12950)
ThomasDelteil Nov 8, 2018
a32fa84
Update MKL-DNN dependency (#12953)
TaoLv Nov 8, 2018
e9a590f
License header (#13178)
larroy Nov 8, 2018
68bc9b7
Updated capsnet example (#12934)
ThomasDelteil Nov 8, 2018
012288f
Updates to several examples (#13068)
ThomasDelteil Nov 8, 2018
55ee9b3
Fix Sphinx python docstring formatting error. (#13177)
frankfliu Nov 8, 2018
d424c0e
[Doc] Fix repo paths in Ubuntu build doc (#13101)
kohr-h Nov 8, 2018
99534c9
Update scala intellij tutorial (#12827)
zachgk Nov 8, 2018
7f1d53e
Improve cpp-package example project build files. (#13093)
frankfliu Nov 9, 2018
3bbbf6d
Fix Sphinx document parsing error. (#13195)
frankfliu Nov 9, 2018
3a6dcc7
Fix #13090, Add image.imread to python API doc. (#13176)
frankfliu Nov 9, 2018
0166793
Fix Sphinx docstring formatting error. (#13004, #13005, #13006) (#13175)
frankfliu Nov 9, 2018
34d24b4
Fix #12944, Fix Sphinx python docstring formatting error. (#13174)
frankfliu Nov 9, 2018
24b8de0
Fix #13013, Fix Sphinx python docstring error. (#13173)
frankfliu Nov 9, 2018
89f3091
update the README (#13186)
stu1130 Nov 9, 2018
6ab06e6
Fixed Sparse astype doc string formatting error (#13171)
vrakesh Nov 10, 2018
05dce1c
Fix problem with some OSX not handling the cast on imDecode (#13207)
gigasquid Nov 10, 2018
b441628
Port of scala Image API to clojure (#13107)
kedarbellare Nov 11, 2018
517ede1
Fixed Documentation issues (#13215)
vrakesh Nov 12, 2018
c18ad7d
update the doc (#13205)
stu1130 Nov 12, 2018
e402242
Fix Sphinx doc errors (#13170)
vandanavk Nov 12, 2018
f971d64
Fix Sphinx python docstring error: initializer.InitDesc (#12939) (#13…
frankfliu Nov 12, 2018
042472a
Fix Sphinx python docstring error: text contrib module (#12949) (#13149)
frankfliu Nov 12, 2018
2e4d6c8
Sphinx failure fixes (#13213)
vdantu Nov 12, 2018
fd3dedc
[MXNET-793] Virtualized ARMv7 with Qemu CI integration (#13203)
larroy Nov 12, 2018
d8d2d6e
Refactor kvstore test (#13140)
larroy Nov 12, 2018
6c82829
remove unused variable rotateM_ (#10803)
nihui Nov 12, 2018
3c5fa16
Revert "Sphinx failure fixes" (#13230)
vdantu Nov 12, 2018
c00697c
[MXNET-953] Fix oob memory read (#12631)
KellenSunderland Nov 12, 2018
e1f221b
update log4j version of Scala package (#13131)
lanking520 Nov 13, 2018
62dcc44
Disable Flaky test test_operator.test_clip (#12902)
marcoabreu Nov 13, 2018
3cebaa2
Update multi-task learning example (#12964)
ThomasDelteil Nov 13, 2018
1822cef
Update MKLML dependency (#13181)
TaoLv Nov 13, 2018
8b38528
Add --no-cache option to build.py when building containers (#13182)
larroy Nov 13, 2018
bdb4443
Tool to ease compilation and reproduction of test results (#13202)
larroy Nov 13, 2018
8c74974
support for upper triangular matrices in linalg (#12904)
asmushetzel Nov 13, 2018
6d5e3cb
Fix Sphinx python docstrings (#13160)
Roshrini Nov 13, 2018
1cc8629
Implemented a regression unit test for #11793 (#12975)
asadoughi Nov 13, 2018
ea6ee0d
Add Java API docs generation (#13071)
aaronmarkham Nov 13, 2018
7baad6f
Fix Sphinx error in ONNX file (#13251)
vandanavk Nov 13, 2018
e655f62
[Example] Fixing Gradcam implementation (#13196)
ankkhedia Nov 13, 2018
7dfcc94
Fix test failure due to hybridize call in test_gluon_rnn.test_layer_f…
yuxihu Nov 13, 2018
f79bb18
Addressed sphinx build issue (#13246)
vdantu Nov 13, 2018
f5ba267
Add gauss err function operator (#13229)
eric-haibin-lin Nov 14, 2018
b8e36e0
Add Turing and Volta support to arch_name (#13168)
KellenSunderland Nov 14, 2018
2eb76b5
Bugfix in ci/docker_cache.py (#13249)
jlcontreras Nov 14, 2018
8cb73ef
Fix scaladoc build errors (#13189)
zachgk Nov 14, 2018
ead3af2
Add missing documentations for getnnz (#13128)
eric-haibin-lin Nov 14, 2018
100a4aa
Addressed ONNX module documentation warnings and added notes for shor…
vdantu Nov 15, 2018
7541021
Manually track num_max_thread (#12380)
azai91 Nov 15, 2018
cf991ff
adding unit test for MKLDNN FullyConnected operator (#12985)
mseth10 Nov 15, 2018
339e085
Doc fixes (#13256)
Roshrini Nov 15, 2018
1ef83c9
fix train mnist for inception-bn and resnet (#13239)
roywei Nov 15, 2018
e7f9770
Fix a bug in index_copy (#13218)
zheng-da Nov 15, 2018
0259254
Addressed doc issues (#13165)
vdantu Nov 15, 2018
226f9cb
Force APT cache update before executing install (#13285)
marcoabreu Nov 15, 2018
8ac7fb9
[Example] Gradcam consolidation in tutorial (#13255)
ankkhedia Nov 15, 2018
97fdfd9
[MXNET-1203] Tutorial infogan (#13144)
NRauschmayr Nov 15, 2018
c78f89f
Remove obsolete memory cost example (#13235)
sandeep-krishnamurthy Nov 15, 2018
6147b06
Add the example to demonstrate the inference workflow.
leleamol Oct 22, 2018
018d047
Fixed the example to no load synset file if not specified.
leleamol Oct 23, 2018
8a43f89
Made the load methods private, added code to print the last error mes…
leleamol Oct 24, 2018
0b02133
Organized the code as per feedback. The interface for Predict class i…
leleamol Oct 25, 2018
c349eb2
Addressed the review comments. Optimized code to load the mean image …
leleamol Nov 15, 2018
8cb9928
Merged the recent changes.
leleamol Nov 16, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ script:
- mv make/osx.mk config.mk
- make -j 2

# Temporarily disabled due to https://github.com/apache/incubator-mxnet/issues/13136
# We ignore several tests to avoid possible timeouts on large PRs.
# This lowers our test coverage, but is required for consistent Travis runs.
# These tests will be tested in a variety of environments in Jenkins based tests.
- python -m nose --with-timer --exclude-test=test_sparse_operator.test_elemwise_binary_ops --exclude-test=test_gluon_model_zoo.test_models --exclude-test=test_random.test_shuffle --exclude-test=test_operator.test_broadcast_binary_op --exclude-test=test_operator.test_pick --exclude-test=test_profiler.test_continuous_profile_and_instant_marker --exclude-test=test_metric_perf.test_metric_performance --exclude-test=test_operator.test_order --verbose tests/python/unittest/
- python2 -m nose --verbose tools/coreml/test --exclude-test=test_mxnet_image
# - python -m nose --with-timer --exclude-test=test_sparse_operator.test_elemwise_binary_ops --exclude-test=test_gluon_model_zoo.test_models --exclude-test=test_random.test_shuffle --exclude-test=test_operator.test_broadcast_binary_op --exclude-test=test_operator.test_pick --exclude-test=test_profiler.test_continuous_profile_and_instant_marker --exclude-test=test_metric_perf.test_metric_performance --exclude-test=test_operator.test_order --verbose tests/python/unittest/
# - python2 -m nose --verbose tools/coreml/test --exclude-test=test_mxnet_image
2 changes: 1 addition & 1 deletion 3rdparty/mkldnn
34 changes: 13 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,17 @@ else(MSVC)
endif()
# For cross complication, turn off flag if target device does not support it
if(USE_F16C)
check_cxx_compiler_flag("-mf16c" COMPILER_SUPPORT_MF16C)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
execute_process(COMMAND cat /proc/cpuinfo
COMMAND grep flags
COMMAND grep f16c
OUTPUT_VARIABLE CPU_SUPPORT_F16C)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
execute_process(COMMAND sysctl -a
COMMAND grep machdep.cpu.features
COMMAND grep F16C
OUTPUT_VARIABLE CPU_SUPPORT_F16C)
endif()
if(NOT CPU_SUPPORT_F16C)
message("CPU does not support F16C instructions")
endif()
if(CPU_SUPPORT_F16C AND COMPILER_SUPPORT_MF16C)
set(SUPPORT_F16C TRUE)
endif()
# Determine if hardware supports F16C instruction set
message(STATUS "Determining F16C support")
include(cmake/AutoDetectF16C.cmake)
else()
set(SUPPORT_F16C FALSE)
endif()
if(SUPPORT_F16C)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mf16c")
else()
add_definitions(-DMSHADOW_USE_F16C=0)
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_FLAGS "-Wall -Wno-unknown-pragmas -Wno-sign-compare")
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang$")
Expand Down Expand Up @@ -234,13 +224,15 @@ if(ENABLE_TESTCOVERAGE)
endif()

if(USE_MKLDNN)
include(cmake/MklDnn.cmake)
include(cmake/DownloadMKLML.cmake)
# CPU architecture (e.g., C5) can't run on another architecture (e.g., g3).
if(NOT MSVC)
set(ARCH_OPT_FLAGS "-mtune=generic")
endif()
set(WITH_TEST OFF)
set(WITH_EXAMPLE OFF)
set(WITH_TEST OFF CACHE INTERNAL "" FORCE)
set(WITH_EXAMPLE OFF CACHE INTERNAL "" FORCE)
set(ARCH_OPT_FLAGS "" CACHE INTERNAL "" FORCE)

add_subdirectory(3rdparty/mkldnn)

include_directories(3rdparty/mkldnn/include)
Expand Down
11 changes: 11 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ who are willing to help maintaining and leading the project. Committers come fro

New committers will be proposed by current committers, with support from more than two of current committers.


List of Contributors
--------------------
* [Full List of Contributors](https://github.com/apache/incubator-mxnet/graphs/contributors)
Expand Down Expand Up @@ -187,3 +188,13 @@ List of Contributors
* [LuckyPigeon](https://github.com/LuckyPigeon)
* [Anton Chernov](https://github.com/lebeg)
* [Denisa Roberts](https://github.com/D-Roberts)
* [Dick Carter](https://github.com/DickJC123)
* [Rahul Padmanabhan](https://github.com/rahul3)
* [Yuxi Hu](https://github.com/yuxihu)

Label Bot
---------
* [mxnet-label-bot](https://github.com/mxnet-label-bot)
- mxnet-label-bot provides users with the functionality to add labels from the repository to issues
- To use me, comment: @mxnet-label-bot add [specify label here]
- For further details: [My Wiki Page](https://cwiki.apache.org/confluence/display/MXNET/Machine+Learning+Based+GitHub+Bot)
15 changes: 15 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

// mxnet libraries
mx_lib = 'lib/libmxnet.so, lib/libmxnet.a, 3rdparty/dmlc-core/libdmlc.a, 3rdparty/tvm/nnvm/lib/libnnvm.a'

// Python wheels
mx_pip = 'build/*.whl'

// for scala build, need to pass extra libs when run with dist_kvstore
mx_dist_lib = 'lib/libmxnet.so, lib/libmxnet.a, 3rdparty/dmlc-core/libdmlc.a, 3rdparty/tvm/nnvm/lib/libnnvm.a, 3rdparty/ps-lite/build/libps.a, deps/lib/libprotobuf-lite.a, deps/lib/libzmq.a'
// mxnet cmake libraries, in cmake builds we do not produce a libnvvm static library by default.
Expand Down Expand Up @@ -414,6 +418,7 @@ core_logic: {
timeout(time: max_time, unit: 'MINUTES') {
utils.init_git()
utils.docker_run('armv7', 'build_armv7', false)
utils.pack_lib('armv7', mx_pip)
}
}
}
Expand Down Expand Up @@ -941,6 +946,16 @@ core_logic: {
}
}
}
},
'ARMv7 QEMU': {
node(NODE_LINUX_CPU) {
ws('workspace/ut-armv7-qemu') {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('armv7', mx_pip)
sh "ci/build.py --docker-registry ${env.DOCKER_CACHE_REGISTRY} -p test.arm_qemu ./runtime_functions.py run_ut_py3_qemu"
}
}
}
}
}

Expand Down
29 changes: 16 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,15 @@ rpkg:
cp -rf 3rdparty/tvm/nnvm/include/* R-package/inst/include
Rscript -e "if(!require(devtools)){install.packages('devtools', repo = 'https://cloud.r-project.org/')}"
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)"
echo "import(Rcpp)" > R-package/NAMESPACE
echo "import(methods)" >> R-package/NAMESPACE
cp R-package/dummy.NAMESPACE R-package/NAMESPACE
echo "import(Rcpp)" >> R-package/NAMESPACE
R CMD INSTALL R-package
Rscript -e "require(mxnet); mxnet:::mxnet.export('R-package')"
Rscript -e "if (!require('roxygen2')||packageVersion('roxygen2')!= '5.0.1'){\
devtools::install_version('roxygen2',version='5.0.1',\
repo='https://cloud.r-project.org/',quiet=TRUE)}"
Rscript -e "require(roxygen2); roxygen2::roxygenise('R-package')"
Rscript -e "if (!require('roxygen2')||packageVersion('roxygen2') < '5.0.1'){\
devtools::install_version('roxygen2',version='5.0.1',\
repos='https://cloud.r-project.org/',quiet=TRUE)}"
Rscript -e "require(mxnet); mxnet:::mxnet.export('R-package'); warnings()"
rm R-package/NAMESPACE
Rscript -e "require(roxygen2); roxygen2::roxygenise('R-package'); warnings()"
R CMD INSTALL R-package

rpkgtest:
Expand Down Expand Up @@ -657,20 +658,22 @@ scaladeploy:
jnilint:
3rdparty/dmlc-core/scripts/lint.py mxnet-jnicpp cpp scala-package/native/src

ifneq ($(EXTRA_OPERATORS),)
clean: cyclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin *~ */*~ */*/*~ */*/*/*~ R-package/NAMESPACE R-package/man R-package/R/mxnet_generated.R \
rclean:
$(RM) -r R-package/src/image_recordio.h R-package/NAMESPACE R-package/man R-package/R/mxnet_generated.R \
R-package/inst R-package/src/*.o R-package/src/*.so mxnet_*.tar.gz

ifneq ($(EXTRA_OPERATORS),)
clean: rclean cyclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin *~ */*~ */*/*~ */*/*/*~
cd $(DMLC_CORE); $(MAKE) clean; cd -
cd $(PS_PATH); $(MAKE) clean; cd -
cd $(NNVM_PATH); $(MAKE) clean; cd -
cd $(AMALGAMATION_PATH); $(MAKE) clean; cd -
$(RM) -r $(patsubst %, %/*.d, $(EXTRA_OPERATORS)) $(patsubst %, %/*/*.d, $(EXTRA_OPERATORS))
$(RM) -r $(patsubst %, %/*.o, $(EXTRA_OPERATORS)) $(patsubst %, %/*/*.o, $(EXTRA_OPERATORS))
else
clean: mkldnn_clean cyclean testclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin *~ */*~ */*/*~ */*/*/*~ R-package/NAMESPACE R-package/man R-package/R/mxnet_generated.R \
R-package/inst R-package/src/image_recordio.h R-package/src/*.o R-package/src/*.so mxnet_*.tar.gz
clean: rclean mkldnn_clean cyclean testclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin *~ */*~ */*/*~ */*/*/*~
cd $(DMLC_CORE); $(MAKE) clean; cd -
cd $(PS_PATH); $(MAKE) clean; cd -
cd $(NNVM_PATH); $(MAKE) clean; cd -
Expand Down
1 change: 1 addition & 0 deletions R-package/.Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ src/*.so$
\.dll$
^.*\.Rproj$
^\.Rproj\.user$
dummy.NAMESPACE

README.md
2 changes: 1 addition & 1 deletion R-package/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Depends:
R (>= 3.3.0)
LinkingTo: Rcpp
VignetteBuilder: knitr
RoxygenNote: 5.0.1
RoxygenNote: 6.1.0
4 changes: 2 additions & 2 deletions R-package/R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ NULL
.onLoad <- function(libname, pkgname) {
# Require methods for older versions of R
require(methods)
library.dynam("libmxnet", pkgname, libname, local=FALSE)
library.dynam("mxnet", pkgname, libname)
tryCatch(library.dynam("libmxnet", pkgname, libname, local=FALSE), error = function(e) { print('Loading local: inst/libs/libmxnet.so'); dyn.load("R-package/inst/libs/libmxnet.so", local=FALSE) })
tryCatch(library.dynam("mxnet", pkgname, libname), error = function(e) { print('Loading local: src/mxnet.so'); dyn.load("R-package/src/mxnet.so") })
loadModule("mxnet", TRUE)
init.symbol.methods()
init.context.default()
Expand Down
16 changes: 16 additions & 0 deletions R-package/dummy.NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by roxygen2: do not edit by hand

import(Rcpp)
import(methods)
importFrom(DiagrammeR,add_global_graph_attrs)
importFrom(DiagrammeR,create_edge_df)
importFrom(DiagrammeR,create_graph)
importFrom(DiagrammeR,create_node_df)
importFrom(DiagrammeR,render_graph)
importFrom(jsonlite,fromJSON)
importFrom(magrittr,"%>%")
importFrom(stringr,str_extract_all)
importFrom(stringr,str_replace_all)
importFrom(stringr,str_replace_na)
importFrom(stringr,str_trim)
importFrom(visNetwork,visHierarchicalLayout)
10 changes: 8 additions & 2 deletions ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ def init_git() {
// retries as this will increase the amount of requests and worsen the throttling
timeout(time: 15, unit: 'MINUTES') {
checkout scm
sh 'git submodule update --init --recursive'
sh 'git clean -xdff'
sh 'git reset --hard'
sh 'git submodule update --init --recursive'
sh 'git submodule foreach --recursive git clean -ffxd'
sh 'git submodule foreach --recursive git reset --hard'
}
} catch (exc) {
deleteDir()
Expand All @@ -45,8 +48,11 @@ def init_git_win() {
// retries as this will increase the amount of requests and worsen the throttling
timeout(time: 15, unit: 'MINUTES') {
checkout scm
bat 'git submodule update --init --recursive'
bat 'git clean -xdff'
bat 'git reset --hard'
bat 'git submodule update --init --recursive'
bat 'git submodule foreach --recursive git clean -ffxd'
bat 'git submodule foreach --recursive git reset --hard'
}
} catch (exc) {
deleteDir()
Expand Down
22 changes: 20 additions & 2 deletions ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Docker containers

You need docker and nvidia docker if you have a GPU.

Also you need to run `pip3 install docker` as it uses the [docker python module](https://docker-py.readthedocs.io/en/stable/containers.html#)

If you are in ubuntu an easy way to install Docker CE is executing the
following script:

Expand Down Expand Up @@ -98,5 +100,21 @@ To run the unit tests under qemu:
./build.py -p armv7 && ./build.py -p test.arm_qemu ./runtime_functions.py run_ut_py3_qemu
```

To get a shell on the container and debug issues with the emulator itself:
Run the output of `./build.py -p test.arm_qemu --print-docker-run`
To get a shell on the container and debug issues with the emulator itself, we build the container
and then execute it interactively. We can afterwards use port 2222 on the host to connect with SSH.


```
ci/build.py -p test.arm_qemu -b && docker run -p2222:2222 -ti mxnetci/build.test.arm_qemu
```

Then from another terminal:

```
ssh -o StrictHostKeyChecking=no -p 2222 qemu@localhost
```

There are two pre-configured users: `root` and `qemu` both without passwords.



Loading