fix deprecation warning (#3446)
author雾雨魔理沙 <lolisa@marisa.moe>
Fri, 28 Jun 2019 03:17:47 +0000 (20:17 -0700)
committerWuwei Lin <vincentl13x@gmail.com>
Fri, 28 Jun 2019 03:17:47 +0000 (11:17 +0800)
tests/python/relay/test_op_level3.py

index a878d79..fcd4caf 100644 (file)
@@ -600,7 +600,7 @@ def test_gather_nd():
 
         func = relay.Function([x, y], z)
         x_data = np.random.uniform(size=xshape).astype("float32")
-        ref_res = x_data[y_data]
+        ref_res = x_data[tuple(y_data)]
 
         for target, ctx in ctx_list():
             for kind in ["graph", "debug"]: