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/04/13 02:12:38 UTC

[GitHub] mengyuest commented on issue #9533: Cannot find engine branch for minpy package

mengyuest commented on issue #9533: Cannot find engine branch for minpy package
URL: https://github.com/apache/incubator-mxnet/issues/9533#issuecomment-380999710
 
 
   I used this and it worked well (though the function is very simple).
   
   ```python
   import mxnet as mx
   from mxnet import nd
   import numpy as np
   import time
   
   t0=time.time()
   mx.random.seed(1)
   x=nd.array([[1,2,3,4,5,6],[3,4,56,7,8,9]],ctx=mx.gpu(0))
   y1=nd.dot(x,x.T)
   print(y1)
   t1=time.time()
   x=np.array([[1,2,3,4,5,6],[3,4,56,7,8,9]])
   y2=np.dot(x,x.T)
   print(y2)
   t2=time.time()
   print(t1-t0,t2-t1)
   ```

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