From eb1da49b7ecf70d0a11e514e6e30dbb2b2a97746 Mon Sep 17 00:00:00 2001 From: Sheng Zha Date: Fri, 24 May 2019 23:20:09 -0700 Subject: [PATCH] add dummy arguments to symbol --- python/mxnet/symbol/symbol.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/mxnet/symbol/symbol.py b/python/mxnet/symbol/symbol.py index 0ea7c9f01d7c..7d7f17c25edd 100644 --- a/python/mxnet/symbol/symbol.py +++ b/python/mxnet/symbol/symbol.py @@ -2082,13 +2082,13 @@ def sign(self, *args, **kwargs): """ return op.sign(self, *args, **kwargs) - def flatten(self, *args, **kwargs): + def flatten(self, inplace=False, **kwargs): # pylint: disable=unused-argument """Convenience fluent method for :py:func:`flatten`. The arguments are the same as for :py:func:`flatten`, with this array as data. """ - return op.flatten(self, *args, **kwargs) + return op.flatten(self, **kwargs) def shape_array(self, *args, **kwargs): """Convenience fluent method for :py:func:`shape_array`. @@ -2106,13 +2106,13 @@ def size_array(self, *args, **kwargs): """ return op.size_array(self, *args, **kwargs) - def expand_dims(self, *args, **kwargs): + def expand_dims(self, axis, inplace=False, **kwargs): # pylint: disable=unused-argument """Convenience fluent method for :py:func:`expand_dims`. The arguments are the same as for :py:func:`expand_dims`, with this array as data. """ - return op.expand_dims(self, *args, **kwargs) + return op.expand_dims(self, axis=axis, **kwargs) def broadcast_to(self, *args, **kwargs): """Convenience fluent method for :py:func:`broadcast_to`. @@ -2538,13 +2538,13 @@ def softmin(self, *args, **kwargs): """ return op.softmin(self, *args, **kwargs) - def squeeze(self, *args, **kwargs): + def squeeze(self, axis, inplace=False, **kwargs): # pylint: disable=unused-argument """Convenience fluent method for :py:func:`squeeze`. The arguments are the same as for :py:func:`squeeze`, with this array as data. """ - return op.squeeze(self, *args, **kwargs) + return op.squeeze(self, axis=axis, **kwargs) def get_backend_symbol(self, backend): """Return symbol for target backend.