Skip to content

Commit

Permalink
replace long with int for python3 (apache#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-haibin-lin authored May 19, 2017
1 parent b80f95a commit 2881185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2881185

Please sign in to comment.