eric-haibin-lin closed pull request #11673: xrange(10) --> range(10) for Python 
3
URL: https://github.com/apache/incubator-mxnet/pull/11673
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/benchmark/python/sparse/util.py b/benchmark/python/sparse/util.py
index c20b33a86d6..29000bdf82e 100644
--- a/benchmark/python/sparse/util.py
+++ b/benchmark/python/sparse/util.py
@@ -24,7 +24,7 @@ def estimate_density(DATA_PATH, feature_size):
         raise Exception("Data is not there!")
     density = []
     P = 0.01
-    for _ in xrange(10):
+    for _ in range(10):
         num_non_zero = 0
         num_sample = 0
         with open(DATA_PATH) as f:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to