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 18:04:11 UTC

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

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

 ##########
 File path: include/mxnet/c_api.h
 ##########
 @@ -373,6 +379,25 @@ MXNET_DLL int MXNDArrayLoad(const char* fname,
                             NDArrayHandle** out_arr,
                             mx_uint *out_name_size,
                             const char*** out_names);
+/*!
+ * \brief Load list of narray from memory.
+ * This will load a list of ndarrays in a similar
+ * manner to MXNDArrayLoad, however, it loads from
+ * pointer in memory, rather than a file.
+ * \param buf pointer to the start of the ndarrays
+ * \param size size of the buffer
+ * \param out_size number of narray loaded.
+ * \param out_arr head of the returning narray handles.
+ * \param out_name_size size of output name arrray.
+ * \param out_names the names of returning NDArrays, can be NULL
+ * \return 0 when success, -1 when failure happens
+ */
+MXNET_DLL int MXNDArrayLoadListFromMemory(const void *buf,
 
 Review comment:
   why do we need this?
   

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