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:05 UTC
[incubator-mxnet] branch leezu-patch-2 created (now fa3da80)
This is an automated email from the ASF dual-hosted git repository.
lausen pushed a change to branch leezu-patch-2
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git.
at fa3da80 Fix mx.symbol.numpy._Symbol.__deepcopy__ logic error
This branch includes the following new commits:
new fa3da80 Fix mx.symbol.numpy._Symbol.__deepcopy__ logic error
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-mxnet] 01/01: Fix mx.symbol.numpy._Symbol.__deepcopy__
logic error
Posted by la...@apache.org.
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"""