From 6577774de919cf09c306c4bbb57c611b260a7ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=BE=E9=9B=A8=E9=AD=94=E7=90=86=E6=B2=99?= Date: Thu, 27 Jun 2019 20:17:47 -0700 Subject: [PATCH] fix deprecation warning (#3446) --- tests/python/relay/test_op_level3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/relay/test_op_level3.py b/tests/python/relay/test_op_level3.py index a878d79e..fcd4caff 100644 --- a/tests/python/relay/test_op_level3.py +++ b/tests/python/relay/test_op_level3.py @@ -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"]: