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

graph executor c api removal #18598

Merged
merged 95 commits into from
Jun 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
a9fca08
add default ctx to cachedop fwd
Jun 7, 2020
4239a4e
add test
Jun 7, 2020
f0738aa
perl fix
Jun 7, 2020
0222b49
initial commit
Jun 8, 2020
4a26dc3
update sparse tests
Jun 8, 2020
0819c55
add aux_states
Jun 8, 2020
6fe9240
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 8, 2020
a217c85
fix aux-state type
Jun 8, 2020
613f0b8
fix some tests
Jun 8, 2020
a955a2a
fix check symbolic forwrad/backward
Jun 9, 2020
feb1e9b
fix symbolic grad check
Jun 9, 2020
39fbabe
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 9, 2020
2359053
arg_dict fixes
Jun 9, 2020
ec733c8
Merge remote-tracking branch 'haibin/cached_op_init' into exec-v2
Jun 9, 2020
198f110
support init ops
Jun 9, 2020
fa81716
support forward only graph
Jun 9, 2020
98d856f
fix check symbolic backward stype
Jun 10, 2020
f870260
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 11, 2020
b914316
add missing file
Jun 11, 2020
0bc69b0
resolve merge conflict
Jun 12, 2020
87b6a12
replace extension test bind
Jun 13, 2020
f2ea289
replace bind with _bind
Jun 13, 2020
2d62a0d
simplify backward_mul implementation
Jun 13, 2020
2fd0b01
small fix
Jun 13, 2020
865f1d2
drop contrib.sparseembedding
Jun 13, 2020
4d9384c
remove simple_bind in test sparse ops
Jun 13, 2020
de1371b
use simple_bind
Jun 13, 2020
a6dbed8
replave simple bind in quantization
Jun 13, 2020
dc1a0fd
fix aux index
Jun 14, 2020
d535e89
update amp simple_bind calls
Jun 14, 2020
aa0f9ac
drop ifft
Jun 14, 2020
cb989b3
fix a bug found in subgraph op
Jun 14, 2020
a31ee87
add aux_array method
Jun 14, 2020
57a4e0d
replace symbols
Jun 14, 2020
ecb0230
minor fix
Jun 14, 2020
17ba0f3
fix executor default context
Jun 14, 2020
104e650
fix import
Jun 14, 2020
3c59821
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 14, 2020
8ec4938
bug fix for nd.where
Jun 14, 2020
8cdb0ce
add subgraph test
Jun 14, 2020
9a6af7a
fix forward grad req
Jun 14, 2020
9634c1e
fix batch dot dtype
Jun 14, 2020
7afcc90
remove unused code
Jun 15, 2020
967a493
fix slice dtype
Jun 15, 2020
7a8b73f
fix attach grad
Jun 15, 2020
27d927c
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 15, 2020
64f47d9
remove tests for non-existing sparse ops
Jun 15, 2020
da8690f
MXCachedOpGetOptimizedSymbol
Jun 16, 2020
18978c4
fix foreach test
Jun 16, 2020
809b413
enhance err msg
Jun 16, 2020
66d3c5c
skip failed test
Jun 16, 2020
088c02e
add docs
Jun 16, 2020
70a6c99
add docs
Jun 16, 2020
b782109
fix lint
Jun 17, 2020
07d14ce
fix lint, remove quantization
Jun 18, 2020
25a5cc6
Merge branch 'exec-v2' of github.com:eric-haibin-lin/mxnet into exec-v2
Jun 18, 2020
08f638b
fix lint
Jun 18, 2020
6cf0869
fix conflict
Jun 18, 2020
631cafa
fix lint
Jun 18, 2020
70f38b4
fix lint
Jun 18, 2020
1ee94dd
fix build and import
Jun 18, 2020
8b467f2
fix import
Jun 18, 2020
d07bb1a
remove scala, R, julia, perl bindings
Jun 18, 2020
340fc53
remove cpp, matlab bindings
Jun 18, 2020
5f92eb3
fix perl call
Jun 18, 2020
935e004
fix test
Jun 18, 2020
7b7e39f
remove perl binding
Jun 18, 2020
5a4ad35
remove reshape test
Jun 19, 2020
1ea994f
fix profiler, trt
Jun 19, 2020
9b3709f
remove tensorrt test
Jun 19, 2020
72ba4d1
remove quantization tests
Jun 19, 2020
4a28777
merge with master
Jun 19, 2020
5cc82b9
fix import
Jun 19, 2020
3881230
fix conflcit
Jun 19, 2020
ab66f22
Merge remote-tracking branch 'origin/master' into exec-v2
Jun 19, 2020
ea43ece
fix lint
Jun 19, 2020
3f79b31
Merge branch 'master' of https://github.com/dmlc/mxnet into exec-v2
Jun 20, 2020
c1cf4b4
skip buggy test
Jun 20, 2020
e0b83c7
remove clojure
Jun 20, 2020
e01a40d
remove executor c api
Jun 20, 2020
3272a69
remove amalgamation
Jun 20, 2020
74e4434
fix build
Jun 20, 2020
da6b014
move executor folder
Jun 20, 2020
b6b4ac8
fix import
Jun 20, 2020
d74af02
Merge remote-tracking branch 'haibin/exec-v2' into exec-c-api
Jun 20, 2020
8e23116
fix lint
Jun 20, 2020
b94d54f
update cicd
Jun 20, 2020
ad44154
fix cpp pcakge
Jun 20, 2020
4d906d3
fix predict cpp
Jun 20, 2020
2bc2990
fix cpp make
Jun 20, 2020
24317ca
remove jnilint
Jun 21, 2020
0153911
remove cpp package tset
Jun 21, 2020
f5c9957
remove julia test pipeline
Jun 21, 2020
58bf03f
disable numpy tests
Jun 21, 2020
f610339
disable compat test for delete
Jun 22, 2020
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
  •  
  •  
  •  
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -898,19 +898,11 @@ if(INSTALL_PYTHON_VERSIONS)
endforeach()
endif()

if(USE_CPP_PACKAGE)
add_subdirectory(cpp-package)
target_compile_definitions(mxnet PUBLIC MXNET_USE_CPP_PACKAGE=1)
if(BUILD_CPP_EXAMPLES)
add_subdirectory(example/image-classification/predict-cpp)
endif()
endif()

add_subdirectory(tests)

# ---[ Linter target
find_package(Python3)
set(LINT_DIRS "include src plugin cpp-package tests")
set(LINT_DIRS "include src plugin tests")
set(EXCLUDE_PATH "src/operator/contrib/ctc_include")
add_custom_target(mxnet_lint COMMAND ${CMAKE_COMMAND} -DMSVC=${MSVC} -DPYTHON_EXECUTABLE=${Python3_EXECUTABLE} -DLINT_DIRS=${LINT_DIRS} -DPROJECT_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DPROJECT_NAME=mxnet -DEXCLUDE_PATH=${EXCLUDE_PATH} -P ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/dmlc-core/cmake/lint.cmake)

Expand Down
44 changes: 5 additions & 39 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ ifndef DLPACK_PATH
DLPACK_PATH = $(ROOTDIR)/3rdparty/dlpack
endif

ifndef AMALGAMATION_PATH
AMALGAMATION_PATH = $(ROOTDIR)/amalgamation
endif

ifndef TVM_PATH
TVM_PATH = $(TPARTYDIR)/tvm
endif
Expand Down Expand Up @@ -463,7 +459,7 @@ ifeq ($(USE_DIST_KVSTORE), 1)
LDFLAGS += $(PS_LDFLAGS_A)
endif

.PHONY: clean all extra-packages test lint clean_all rcpplint rcppexport roxygen\
.PHONY: clean all extra-packages test lint clean_all roxygen\
cython3 cython cyclean

all: lib/libmxnet.a lib/libmxnet.so $(BIN) extra-packages extension_libs
Expand Down Expand Up @@ -663,23 +659,17 @@ $(BIN) :
@mkdir -p $(@D)
$(CXX) $(CFLAGS) -std=c++17 -o $@ $(filter %.cpp %.o %.c %.a %.cc, $^) $(LDFLAGS)

# CPP Package
ifeq ($(USE_CPP_PACKAGE), 1)
include cpp-package/cpp-package.mk
CFLAGS += -DMXNET_USE_CPP_PACKAGE=1
endif

include mkldnn.mk
include tests/cpp/unittest.mk

extra-packages: $(EXTRA_PACKAGES)

test: $(TEST)

lint: cpplint rcpplint jnilint pylint
lint: cpplint pylint

cpplint:
3rdparty/dmlc-core/scripts/lint.py mxnet cpp include src plugin cpp-package tests \
3rdparty/dmlc-core/scripts/lint.py mxnet cpp include src plugin tests \
--exclude_path src/operator/contrib/ctc_include include/mkldnn

pylint:
Expand Down Expand Up @@ -727,28 +717,6 @@ cython3:
cyclean:
rm -rf python/mxnet/*/*.so python/mxnet/*/*.cpp

scalaclean:
(cd $(ROOTDIR)/scala-package && mvn clean)

scalapkg:
(cd $(ROOTDIR)/scala-package && mvn install -DskipTests)

scalainstall:
(cd $(ROOTDIR)/scala-package && mvn install)

scalaunittest:
(cd $(ROOTDIR)/scala-package && mvn install)

scalaintegrationtest:
(cd $(ROOTDIR)/scala-package && mvn integration-test -DskipTests=false)

jnilint:
3rdparty/dmlc-core/scripts/lint.py mxnet-jnicpp cpp scala-package/native/src --exclude_path scala-package/native/src/main/native/org_apache_mxnet_native_c_api.h

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

build/rat/apache-rat-0.13/apache-rat-0.13.jar:
mkdir -p build/rat
cd build/rat; \
Expand All @@ -770,25 +738,23 @@ ratcheck: build/rat/apache-rat-0.13/apache-rat-0.13.jar


ifneq ($(EXTRA_OPERATORS),)
clean: rclean cyclean $(EXTRA_PACKAGES_CLEAN)
clean: cyclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin deps *~ */*~ */*/*~ */*/*/*~
(cd scala-package && mvn clean) || true
cd $(DMLC_CORE); $(MAKE) clean; cd -
cd $(PS_PATH); $(MAKE) clean; cd -
cd $(NNVM_PATH); $(MAKE) clean; cd -
cd $(TVM_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: rclean mkldnn_clean cyclean testclean $(EXTRA_PACKAGES_CLEAN)
clean: mkldnn_clean cyclean testclean $(EXTRA_PACKAGES_CLEAN)
$(RM) -r build lib bin *~ */*~ */*/*~ */*/*/*~
(cd scala-package && mvn clean) || true
cd $(DMLC_CORE); $(MAKE) clean; cd -
cd $(PS_PATH); $(MAKE) clean; cd -
cd $(NNVM_PATH); $(MAKE) clean; cd -
cd $(TVM_PATH); $(MAKE) clean; cd -
cd $(AMALGAMATION_PATH); $(MAKE) clean; cd -
endif

clean_all: clean
Expand Down
8 changes: 0 additions & 8 deletions R-package/.Rbuildignore

This file was deleted.

10 changes: 0 additions & 10 deletions R-package/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions R-package/DESCRIPTION

This file was deleted.

202 changes: 0 additions & 202 deletions R-package/LICENSE

This file was deleted.

Loading