Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Use DEFAULT macro in C APIs (#14767) (#14789)
Browse files Browse the repository at this point in the history
* fix C API default values

* remove duplicate MXInvokeCachedOp
  • Loading branch information
yuxihu authored and szha committed Apr 25, 2019
1 parent 0eab551 commit 19d78e5
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions include/mxnet/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1130,14 +1130,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
//--------------------------------------------
Expand Down Expand Up @@ -2519,8 +2512,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.
Expand All @@ -2541,8 +2535,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
}
Expand Down

0 comments on commit 19d78e5

Please sign in to comment.