From 21357ce3f111ec06d2937e56a40f5dd2e7147807 Mon Sep 17 00:00:00 2001 From: Sergey Kolychev Date: Tue, 9 Apr 2019 11:01:43 -0700 Subject: [PATCH] swig fixes for the changes in c_api.h --- perl-package/AI-MXNetCAPI/mxnet_typemaps.i | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/perl-package/AI-MXNetCAPI/mxnet_typemaps.i b/perl-package/AI-MXNetCAPI/mxnet_typemaps.i index 50296c2aaba5..3ec9f95ea9c3 100644 --- a/perl-package/AI-MXNetCAPI/mxnet_typemaps.i +++ b/perl-package/AI-MXNetCAPI/mxnet_typemaps.i @@ -524,13 +524,13 @@ } } -%typemap(in,numinputs=0) (mx_uint *out_dim, const mx_uint **out_pdata) (mx_uint temp_dim, mx_uint *temp_pdata) +%typemap(in,numinputs=0) (int *out_dim, const int **out_pdata) (int temp_dim, int *temp_pdata) { $1 = &temp_dim; $2 = &temp_pdata; } -%typemap(argout) (mx_uint *out_dim, const mx_uint **out_pdata) +%typemap(argout) (int *out_dim, const int **out_pdata) { if(!result) { @@ -956,12 +956,12 @@ } } -%typemap(in,numinputs=0) (mx_uint *in_shape_size, const mx_uint **in_shape_ndim, const mx_uint ***in_shape_data) - (mx_uint temp1, mx_uint *temp2, mx_uint **temp3), - (mx_uint *out_shape_size, const mx_uint **out_shape_ndim, const mx_uint ***out_shape_data) - (mx_uint temp1, mx_uint *temp2, mx_uint **temp3), - (mx_uint *aux_shape_size, const mx_uint **aux_shape_ndim, const mx_uint ***aux_shape_data) - (mx_uint temp1, mx_uint *temp2, mx_uint **temp3) +%typemap(in,numinputs=0) (mx_uint *in_shape_size, const int **in_shape_ndim, const int ***in_shape_data) + (mx_uint temp1, int *temp2, int **temp3), + (mx_uint *out_shape_size, const int **out_shape_ndim, const int ***out_shape_data) + (mx_uint temp1, int *temp2, int **temp3), + (mx_uint *aux_shape_size, const int **aux_shape_ndim, const int ***aux_shape_data) + (mx_uint temp1, int *temp2, int **temp3) { $1 = &temp1; $2 = &temp2; @@ -969,9 +969,9 @@ *$1 = 0; } -%typemap(argout) (mx_uint *in_shape_size, const mx_uint **in_shape_ndim, const mx_uint ***in_shape_data), - (mx_uint *out_shape_size, const mx_uint **out_shape_ndim, const mx_uint ***out_shape_data), - (mx_uint *aux_shape_size, const mx_uint **aux_shape_ndim, const mx_uint ***aux_shape_data) +%typemap(argout) (mx_uint *in_shape_size, const int **in_shape_ndim, const int ***in_shape_data), + (mx_uint *out_shape_size, const int **out_shape_ndim, const int ***out_shape_data), + (mx_uint *aux_shape_size, const int **aux_shape_ndim, const int ***aux_shape_data) { if(!result && *arg15) {