forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cpp-package] Add monitor, optimizers, metrics and bug fixes (apache#…
…6033) * [cpp-package]Support MSVC and python 3 * Update docs * [cpp-package]Add monitor * Force UTF-8 encoding in MSVC * [cpp-package] Automatically deploy the compiled library * [cpp-package] Add RMSProp, Adam, AdaGrad, AdaDelta * [cpp-package] Fix initializers * Fix lint * [cpp-package] Update Makefile * [cpp-package] Fix constructor order * Add MAE, MSE, PSNR metrics * trigger op_map when loading symbols from file, to force ops to be initialized * Add missing headers * [cpp-package] Add inline to satisfy ODR * Fix cuda compilation on windows * [cpp-package] Update CMakeLists
- Loading branch information
Showing
21 changed files
with
719 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
|
||
if(USE_CPP_PACKAGE AND NOT MSVC) | ||
if(USE_CPP_PACKAGE) | ||
|
||
set(CPP_PACKAGE_OP_H_HEADER ${CMAKE_CURRENT_LIST_DIR}/include/mxnet-cpp/op.h) | ||
|
||
if(MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") | ||
endif(MSVC) | ||
|
||
add_custom_target( | ||
cpp_package_op_h ALL | ||
BYPRODUCTS ${CPP_PACKAGE_OP_H_HEADER} | ||
MAIN_DEPENDENCY mxnet | ||
DEPENDS mxnet ${CMAKE_CURRENT_SOURCE_DIR}/src/OpWrapperGenerator/OpWrapperGenerator.py | ||
DEPENDS mxnet ${CMAKE_CURRENT_SOURCE_DIR}/scripts/OpWrapperGenerator.py | ||
COMMAND echo "Running: OpWrapperGenerator.py" | ||
COMMAND python OpWrapperGenerator.py ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/$<TARGET_FILE:mxnet> | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/OpWrapperGenerator/ | ||
COMMAND python OpWrapperGenerator.py $<TARGET_FILE:mxnet> | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts | ||
) | ||
|
||
add_subdirectory(example) | ||
|
||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.