Skip to content

How to start using the library ? #590

@eimfach

Description

@eimfach

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions