You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/08 18:30:22 UTC

[GitHub] nswamy closed pull request #13180: Remove test for non existing index copy operator (v1.3.x)

nswamy closed pull request #13180: Remove test for non existing index copy operator (v1.3.x)
URL: https://github.com/apache/incubator-mxnet/pull/13180
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/python/unittest/test_operator.py b/tests/python/unittest/test_operator.py
index d2fba23b1c4..c385c57cf69 100644
--- a/tests/python/unittest/test_operator.py
+++ b/tests/python/unittest/test_operator.py
@@ -4752,30 +4752,7 @@ def test_quantization_op():
 
     assert same(qa.asnumpy(), qa_real.asnumpy())
     assert same(a_.asnumpy(),  a_real.asnumpy())
-
-@with_seed()
-def test_index_copy():
-    x = mx.nd.zeros((5,3))
-    t = mx.nd.array([[1,2,3],[4,5,6],[7,8,9]])
-    index = mx.nd.array([0,4,2], dtype=np.int64)
-
-    x.attach_grad()
-    t.attach_grad()
-    index.attach_grad()
-
-    with mx.autograd.record():
-        out = mx.nd.contrib.index_copy(x, index, t)
-    out.backward()
-
-    tensor = mx.nd.array([[1,2,3],[0,0,0],[7,8,9],[0,0,0],[4,5,6]])
-    x_grad = mx.nd.array([[0,0,0],[1,1,1],[0,0,0],[1,1,1],[0,0,0]])
-    t_grad = mx.nd.array([[1,1,1],[1,1,1],[1,1,1]])
-    index_grad = mx.nd.array([0,0,0])
-
-    assert same(out.asnumpy(), tensor.asnumpy())
-    assert same(x.grad.asnumpy(), x_grad.asnumpy())
-    assert same(t.grad.asnumpy(), t_grad.asnumpy())
-    assert same(index.grad.asnumpy(), index_grad.asnumpy())
+    
 
 @with_seed()
 def test_div_sqrt_dim():


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services