Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start using the library ? #590

Open
eimfach opened this issue Feb 12, 2020 · 2 comments
Open

How to start using the library ? #590

eimfach opened this issue Feb 12, 2020 · 2 comments

Comments

@eimfach
Copy link

eimfach commented Feb 12, 2020

Hi there
I am a beginner to neural networks...

Basically, I want to use this lib as replacement for NumPy to have gpu acceleration in my (simple) neural network... (implementation: https://github.com/makeyourownneuralnetwork/makeyourownneuralnetwork/blob/master/part2_neural_network.ipynb)

For example I am using:
numpy.random.normal
numpy.dot
numpy.array
numpy.transpose

I replaced numpy.array with pygpu.gpuarray.array but it is telling me TypeError: No context specified. - so I tried to create a gpu context beforehand (MacOS Intel iris 500 iGPU), but I have no idea how to successfully do that.

I tried to create a context from the pygpu.gpuarray.GpuContext class like so:
pygpu.gpuarray.GpuContext(kind="opencl") but I get: __init__() got an unexpected keyword argument 'kind'

@nouiz
Copy link
Member

nouiz commented Feb 12, 2020

This library was developed for Theano. Both Theano and libgpuarray aren't developed and are barely maintained. I would suggest to find another maintained lib.
Maybe cupy or pycuda would do what you want. They are kind of NumPy on CUDA.
If you want a DL or neural networks library that behave in a way similar to NumPy, you could look at PyTorch.

@Souravcool1996
Copy link

Unable to configure gpu in my laptop. I am attaching screenshot of a error that i got while configuring gpu.
Screenshot from 2020-02-26 23-15-28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants