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/08/09 05:02:41 UTC

[GitHub] haojin2 commented on a change in pull request #12076: Add GetName function in Symbol class for cpp package

haojin2 commented on a change in pull request #12076: Add GetName function in Symbol class for cpp package
URL: https://github.com/apache/incubator-mxnet/pull/12076#discussion_r208806917
 
 

 ##########
 File path: cpp-package/include/mxnet-cpp/symbol.hpp
 ##########
 @@ -172,6 +172,13 @@ inline std::vector<std::string> Symbol::ListAuxiliaryStates() const {
   return ret;
 }
 
+inline std::string Symbol::GetName() const {
+  int success;
+  const char* out_name;
+  CHECK_EQ(MXSymbolGetName(GetHandle(), &out_name, &success), 0);
 
 Review comment:
   added.

----------------------------------------------------------------
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