piiswrong closed pull request #9776: Use get_bz2_data from test_utils for 
sparse_op script
URL: https://github.com/apache/incubator-mxnet/pull/9776
 
 
   

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/sparse_op.py 
b/benchmark/python/sparse/sparse_op.py
index ebe62af05d..95ea7d54e2 100644
--- a/benchmark/python/sparse/sparse_op.py
+++ b/benchmark/python/sparse/sparse_op.py
@@ -24,7 +24,8 @@
 import argparse
 
 from mxnet.base import check_call, _LIB
-from util import get_data, estimate_density
+from mxnet.test_utils import get_bz2_data
+from util import estimate_density
 
 parser = argparse.ArgumentParser(description="Benchmark sparse operators",
                                  
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
@@ -78,7 +79,7 @@ def get_iter(path, data_shape, batch_size):
 
     path = os.path.join(data_dir, data_dict['data_name'])
     if not os.path.exists(path):
-        get_data(
+        get_bz2_data(
             data_dir,
             data_dict['data_name'],
             data_dict['url'],


 

----------------------------------------------------------------
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