From 494614218945634d091c173834b4fe25669e1bb9 Mon Sep 17 00:00:00 2001 From: eric-haibin-lin Date: Fri, 19 May 2017 04:07:02 +0000 Subject: [PATCH] replace long with int for python3 --- 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()