You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/08/24 19:03:27 UTC

[incubator-mxnet] branch master updated: Fix symbol load json (#6420)

This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a3ee08  Fix symbol load json (#6420)
0a3ee08 is described below

commit 0a3ee080d9706702c6c279a7051aef1fa806fd34
Author: Xin Li <ya...@gmail.com>
AuthorDate: Fri Aug 25 03:03:24 2017 +0800

    Fix symbol load json (#6420)
---
 cpp-package/include/mxnet-cpp/symbol.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpp-package/include/mxnet-cpp/symbol.hpp b/cpp-package/include/mxnet-cpp/symbol.hpp
index ee1a11e..11590fa 100644
--- a/cpp-package/include/mxnet-cpp/symbol.hpp
+++ b/cpp-package/include/mxnet-cpp/symbol.hpp
@@ -103,6 +103,7 @@ inline Symbol Symbol::Load(const std::string &file_name) {
   return Symbol(handle);
 }
 inline Symbol Symbol::LoadJSON(const std::string &json_str) {
+  op_map();
   SymbolHandle handle;
   CHECK_EQ(MXSymbolCreateFromJSON(json_str.c_str(), &(handle)), 0);
   return Symbol(handle);

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].