Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignoring variables in SimpleBind that is used on python's sparse branch for now. #135

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ignoring variables in SimpleBind that is used on python's sparse bran…
…ch for now.
  • Loading branch information
sergeykolychev committed Jul 31, 2017
commit 50ee501be15c9a69e8469652d2b03e74ae76b9b4
6 changes: 6 additions & 0 deletions perl-package/AI-MXNetCAPI/mxnet.i
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,12 @@ int MXExecutorSimpleBind(SymbolHandle symbol_handle,
const mx_uint num_provided_arg_dtypes,
const char** in, // provided_arg_dtype_names,
const int* in, // provided_arg_dtypes,

//--------------- sparse related variables, ignored for now
const mx_uint num_provided_arg_stypes,
const char** provided_arg_stype_names,
const int* provided_arg_stypes,
//---------------
const mx_uint num_shared_arg_names,
const char** in, // shared_arg_name_list,
//------------
Expand Down
11 changes: 11 additions & 0 deletions perl-package/AI-MXNetCAPI/mxnet_typemaps.i
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,17 @@
}
}

%typemap(in,numinputs=0) (const mx_uint num_provided_arg_stypes, const char** provided_arg_stype_names,
const int* provided_arg_stypes)
(mx_uint temp1, char* temp2, int temp3)
{
$2 = &temp2;
$3 = &temp3;
$1 = 0;
*$2 = NULL;
*$3 = 0;
}

%typemap(in,numinputs=0) (mx_uint* num_aux_states,
NDArrayHandle** aux_states)
(mx_uint temp1,
Expand Down