[incubator-mxnet] branch v1.x updated: [1.x] Pass args fix2 (#18236)
This is an automated email from the ASF dual-hosted git repository. apeforest pushed a commit to branch v1.x in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git The following commit(s) were added to refs/heads/v1.x by this push: new ac3e71b [1.x] Pass args fix2 (#18236) ac3e71b is described below commit ac3e71b2ae0d39a9b4af4c047decc2e4a28e759a Author: Sam Skalicky AuthorDate: Fri May 29 13:50:02 2020 -0700 [1.x] Pass args fix2 (#18236) * fixed overwrite of args/aux variables * fixed spacing * Merged #18177 * updated python RPM URL --- python/mxnet/symbol/symbol.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 37b9186..e90fb9b 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -1484,18 +1484,18 @@ class Symbol(SymbolBase): assert isinstance(backend, str) if args is None or len(args) == 0: -args = [] +args_ = [] args_handle = c_array(NDArrayHandle, []) else: -args_handle, args = self._get_ndarray_inputs('args', args, - self.list_arguments(), False) +args_handle, args_ = self._get_ndarray_inputs('args', args, + self.list_arguments(), False) if aux is None or len(aux) == 0: -aux = [] +aux_ = [] aux_handle = c_array(NDArrayHandle, []) else: -aux_handle, aux = self._get_ndarray_inputs('aux_states', aux, - self.list_auxiliary_states(), False) +aux_handle, aux_ = self._get_ndarray_inputs('aux_states', aux, + self.list_auxiliary_states(), False) if ctx is None: ctx = current_context() assert isinstance(ctx, Context) @@ -1516,9 +1516,9 @@ class Symbol(SymbolBase): c_str(backend), ctypes.c_int(ctx.device_typeid), ctypes.byref(out), - mx_uint(len(args)), + mx_uint(len(args_)), args_handle, - mx_uint(len(aux)), + mx_uint(len(aux_)), aux_handle, mx_uint(len(key_list)), c_str_array(key_list),
[incubator-mxnet] branch v1.x updated: [1.x] Pass args fix2 (#18236)
This is an automated email from the ASF dual-hosted git repository. apeforest pushed a commit to branch v1.x in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git The following commit(s) were added to refs/heads/v1.x by this push: new ac3e71b [1.x] Pass args fix2 (#18236) ac3e71b is described below commit ac3e71b2ae0d39a9b4af4c047decc2e4a28e759a Author: Sam Skalicky AuthorDate: Fri May 29 13:50:02 2020 -0700 [1.x] Pass args fix2 (#18236) * fixed overwrite of args/aux variables * fixed spacing * Merged #18177 * updated python RPM URL --- python/mxnet/symbol/symbol.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 37b9186..e90fb9b 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -1484,18 +1484,18 @@ class Symbol(SymbolBase): assert isinstance(backend, str) if args is None or len(args) == 0: -args = [] +args_ = [] args_handle = c_array(NDArrayHandle, []) else: -args_handle, args = self._get_ndarray_inputs('args', args, - self.list_arguments(), False) +args_handle, args_ = self._get_ndarray_inputs('args', args, + self.list_arguments(), False) if aux is None or len(aux) == 0: -aux = [] +aux_ = [] aux_handle = c_array(NDArrayHandle, []) else: -aux_handle, aux = self._get_ndarray_inputs('aux_states', aux, - self.list_auxiliary_states(), False) +aux_handle, aux_ = self._get_ndarray_inputs('aux_states', aux, + self.list_auxiliary_states(), False) if ctx is None: ctx = current_context() assert isinstance(ctx, Context) @@ -1516,9 +1516,9 @@ class Symbol(SymbolBase): c_str(backend), ctypes.c_int(ctx.device_typeid), ctypes.byref(out), - mx_uint(len(args)), + mx_uint(len(args_)), args_handle, - mx_uint(len(aux)), + mx_uint(len(aux_)), aux_handle, mx_uint(len(key_list)), c_str_array(key_list),