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/01/26 16:00:34 UTC

[GitHub] dabraude commented on a change in pull request #9573: Added two functions to the C API

dabraude commented on a change in pull request #9573: Added two functions to the C API
URL: https://github.com/apache/incubator-mxnet/pull/9573#discussion_r164148879
 
 

 ##########
 File path: include/mxnet/c_api.h
 ##########
 @@ -201,6 +201,12 @@ MXNET_DLL const char *MXGetLastError();
  * \return 0 when success, -1 when failure happens.
  */
 MXNET_DLL int MXRandomSeed(int seed);
+/*!
+ * \brief Initialise MXNet
+ * This ensures the engine has been initialised and
+ * the operators have been registered.
+ */
+MXNET_DLL void MXInitialise();
 
 Review comment:
   Under the hood it just calls the list symbols method which registers the operators, but this means the purpose of the call is clearer.

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