You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2020/07/10 04:11:06 UTC

[incubator-mxnet] 01/01: Fix mx.symbol.numpy._Symbol.__deepcopy__ logic error

This is an automated email from the ASF dual-hosted git repository.

lausen pushed a commit to branch leezu-patch-2
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit fa3da80c3f304cf363a33df32a6e5e0f194d420f
Author: Leonard Lausen <la...@amazon.com>
AuthorDate: Thu Jul 9 21:09:55 2020 -0700

    Fix mx.symbol.numpy._Symbol.__deepcopy__ logic error
    
    Performed shallow copy instead of deep copy
---
 python/mxnet/symbol/numpy/_symbol.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/mxnet/symbol/numpy/_symbol.py b/python/mxnet/symbol/numpy/_symbol.py
index d3521ca..9b193f8 100644
--- a/python/mxnet/symbol/numpy/_symbol.py
+++ b/python/mxnet/symbol/numpy/_symbol.py
@@ -283,7 +283,7 @@ class _Symbol(Symbol):
         return negative(self)
 
     def __deepcopy__(self, _):
-        return super(_Symbol, self).as_np_ndarray()
+        return super().__deepcopy__(_).as_np_ndarray()
 
     def __eq__(self, other):
         """x.__eq__(y) <=> x == y"""