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 2019/04/25 06:04:42 UTC
[GitHub] [incubator-mxnet] szha commented on a change in pull request
#14758: [WIP] Infra for supporting numpy ops in imperative mode and Gluon
APIs
szha commented on a change in pull request #14758: [WIP] Infra for supporting numpy ops in imperative mode and Gluon APIs
URL: https://github.com/apache/incubator-mxnet/pull/14758#discussion_r278405473
##########
File path: include/mxnet/c_api.h
##########
@@ -2794,6 +2794,36 @@ MXNET_DLL int MXEnginePushSync(EngineSyncFunc sync_func, void* func_param,
EngineVarHandle mutable_vars_handle, int num_mutable_vars,
EngineFnPropertyHandle prop_handle = NULL, int priority = 0,
const char* opr_name = NULL);
+/*!
+ * \brief Determines if an op is a Numpy op by its name prefix.
+ * Every Numpy op starts with a prefix string "_numpy_".
+ * \param creator Operator handle
+ * \param is_np_op Indicator of whether creator is a numpy op handle
+ */
+MXNET_DLL int MXIsNumpyOp(AtomicSymbolCreator creator,
+ int* is_np_op);
+/*!
+ * \brief Create an NDArray from source sharing the same data chunk.
+ * \param src source NDArray
+ * \param out new NDArray sharing the same data chunck with src
+ */
+MXNET_DLL int MXShallowCopyNDArray(NDArrayHandle src, NDArrayHandle* out);
+/*!
+ * \brief Create an Symbol from source sharing the same graph structure.
+ * \param src source Symbol
+ * \param out new Symbol sharing the same graph structure with src
+ */
+MXNET_DLL int MXShallowCopySymbol(SymbolHandle src, SymbolHandle * out);
+/*!
+ * \brief Create an Symbol from source sharing the same graph structure.
Review comment:
update doc
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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