From 2881185b50b2364041c60e4c28d1739600cea1f8 Mon Sep 17 00:00:00 2001 From: Haibin Lin Date: Thu, 18 May 2017 21:08:29 -0700 Subject: [PATCH] replace long with int for python3 (#40) --- python/mxnet/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mxnet/test_utils.py b/python/mxnet/test_utils.py index 33c16faf0fca..768c1568e56c 100644 --- a/python/mxnet/test_utils.py +++ b/python/mxnet/test_utils.py @@ -74,7 +74,7 @@ def rand_sparse_ndarray(shape, storage_type, density=None): # TODO(haibin) support high dim sparse ndarray assert(len(shape) < 3) prod = np.prod(shape) - num_cols = long(prod / shape[0]) + num_cols = int(prod / shape[0]) # sample index idx_sample = rnd.rand(shape[0]) indices = np.argwhere(idx_sample < density).flatten()