You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/07 21:46:43 UTC

[GitHub] eric-haibin-lin commented on issue #11124: make slice operator 20x faster on GPU

eric-haibin-lin commented on issue #11124: make slice operator 20x faster on GPU
URL: https://github.com/apache/incubator-mxnet/pull/11124#issuecomment-419574397
 
 
   @BiranLi i'm using this test code:
   ```
   import mxnet as mx
   import time
   
   a = mx.nd.ones((512, 8192), ctx=mx.gpu())
   for i in range(10):
       b = a.slice(begin=(None, 4), end=(None, None))
   
   mx.nd.waitall()
   t0 = time.time()
   for i in range(1000):
       b = a.slice(begin=(None, 4), end=(None, None))
   
   mx.nd.waitall()
   t1 = time.time()
   print(t1 - t0)
   
   ```
   What did you use? Are you on slack? 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services