From 587d480372f41b25fcbffd45ce77373ad93d41b5 Mon Sep 17 00:00:00 2001 From: Yuxi Hu Date: Wed, 24 Apr 2019 15:46:43 -0700 Subject: [PATCH] Use DEFAULT macro in C APIs (#14767) * fix C API default values * remove duplicate MXInvokeCachedOp --- include/mxnet/c_api.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/include/mxnet/c_api.h b/include/mxnet/c_api.h index 0acfde0686d4..21018e3e1b06 100644 --- a/include/mxnet/c_api.h +++ b/include/mxnet/c_api.h @@ -1169,14 +1169,7 @@ MXNET_DLL int MXInvokeCachedOpEx(CachedOpHandle handle, int *num_outputs, NDArrayHandle **outputs, const int** out_stypes); -/*! - * \brief invoke cached operator - */ -MXNET_DLL int MXInvokeCachedOp(CachedOpHandle handle, - int num_inputs, - NDArrayHandle *inputs, - int *num_outputs, - NDArrayHandle **outputs); + //-------------------------------------------- // Part 3: symbolic configuration generation //-------------------------------------------- @@ -2770,8 +2763,9 @@ MXNET_DLL int MXEnginePushAsync(EngineAsyncFunc async_func, void* func_param, EngineFuncParamDeleter deleter, ContextHandle ctx_handle, EngineVarHandle const_vars_handle, int num_const_vars, EngineVarHandle mutable_vars_handle, int num_mutable_vars, - EngineFnPropertyHandle prop_handle = NULL, int priority = 0, - const char* opr_name = NULL, bool wait = false); + EngineFnPropertyHandle prop_handle DEFAULT(NULL), + int priority DEFAULT(0), const char* opr_name DEFAULT(NULL), + bool wait DEFAULT(false)); /*! * \brief Push a synchronous operation to the engine. @@ -2792,8 +2786,8 @@ MXNET_DLL int MXEnginePushSync(EngineSyncFunc sync_func, void* func_param, EngineFuncParamDeleter deleter, ContextHandle ctx_handle, EngineVarHandle const_vars_handle, int num_const_vars, EngineVarHandle mutable_vars_handle, int num_mutable_vars, - EngineFnPropertyHandle prop_handle = NULL, int priority = 0, - const char* opr_name = NULL); + EngineFnPropertyHandle prop_handle DEFAULT(NULL), + int priority DEFAULT(0), const char* opr_name DEFAULT(NULL)); #ifdef __cplusplus }