dmlc / minpy

NumPy interface with mixed backend execution
https://minpy.readthedocs.io/en/latest/
Other
1.11k stars 112 forks source link

Cannot find 'engine' branch for minpy package #182

Closed mengyuest closed 6 years ago

mengyuest commented 6 years ago

I want to use GPU on numpy opers so I tried minpy. The system is ubuntu16.04 and my display card is GTX1080 (cudnn 7.0). When I installed mxnet, I could not find "engine" branch mentioned in instruction step git clone --recursive -b engine https://github.com/dmlc/mxnet.git So I just installed the master branch one and at last I could not use minpy correctly. My program wrote as

import minpy.numpy as np
import minpy.numpy.random as random
import time
x= random.rand(1024, 1024)
y= random.rand(1024, 1024)
st = time.time()
for i in range(10):
    z= np.dot(x, y)
z.asnumpy()
print('time: {:.3f}.'.format(time.time()-st))                                                        

and when running, it said W0123 14:35:58 22806 minpy.dispatch.registry:register:47] Type MXNet for name reshape has already existed Can anyone tell me what to do? Thanks.

jekbradbury commented 6 years ago

minpy is not being actively maintained. for numpy operations on GPU, maybe try cupy?

jermainewang commented 6 years ago

Hi @mengyuest , most minpy's functionality have been merged to Gluon. It supports dynamic autograd and quite extensive numpy operator support. Please have a look and see if it helps!

mengyuest commented 6 years ago

Great! Thanks~