Skip to main content

python wrapper for DeepCL deep convolutional neural network library for OpenCL

Project description

DeepCL Python wrappers

Python wrapper for DeepCL

To install from pip

pip install DeepCL

How to use

See test_deepcl.py for an example of:

  • creating a network, with several layers

  • loading mnist data

  • training the network using a higher-level interface (NetLearner)

For examples of using lower-level entrypoints, see test_lowlevel.py:

  • creating layers directly

  • running epochs and forward/backprop directly

For example of using q-learning, see test_qlearning.py.

To build from source

Pre-requisites:

To build:

cd python
python setup.py build_ext -i

Then, you can run from this directory, by making sure to add it to the path, eg:

PYTHONPATH=. python test_lowlevel.py /my/mnist/data/dir

To install:

cd python
python setup.py install

Notes on how the wrapper works

  • cDeepCL.pxd contains the definitions of the underlying DeepCL c++ libraries classes

  • PyDeepCL.pyx contains Cython wrapper classes around the underlying c++ classes

  • setup.py is a setup file for compiling the PyDeepCL.pyx Cython file

to run unit-tests

From the python directory:

nosetests -sv

Development builds

  • If you want to modify the sourcecode, you’ll need to re-run cython, so you’ll need cython:

    pip install cython
  • If you want to update this readme, you might want to re-generate the README.rst, so you’ll need pypandoc:

    pip install pypandoc
  • (note that pypandoc depends on pandoc)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

DeepCL-5.8.0-py3.4-win-amd64.egg (290.4 kB view details)

Uploaded Egg

DeepCL-5.8.0-py3.4-win32.egg (248.6 kB view details)

Uploaded Egg

DeepCL-5.8.0-py2.7-win-amd64.egg (305.2 kB view details)

Uploaded Egg

DeepCL-5.8.0-py2.7-win32.egg (232.1 kB view details)

Uploaded Egg

File details

Details for the file DeepCL-5.8.0-py3.4-win-amd64.egg.

File metadata

File hashes

Hashes for DeepCL-5.8.0-py3.4-win-amd64.egg
Algorithm Hash digest
SHA256 9ea349b150e95c079763163fba5304a354be8a7ca6bf4f8376580e494b852def
MD5 31993d11ae66e578e3f61fc25e0ae66b
BLAKE2b-256 8e77b98427f9002e8861e980249f45a967e2064f07b9413b505440bbe938cfdc

See more details on using hashes here.

File details

Details for the file DeepCL-5.8.0-py3.4-win32.egg.

File metadata

File hashes

Hashes for DeepCL-5.8.0-py3.4-win32.egg
Algorithm Hash digest
SHA256 cd5abc064450983fc1049c416daf646f0b7f1d5ab3e59eb3ff9e24e30872007c
MD5 4b4a897946105710da3fd557dac0e47c
BLAKE2b-256 27b66ccac60838093b8dca4db31678e475dd6de579ea4623e84fef3aa5f9ceec

See more details on using hashes here.

File details

Details for the file DeepCL-5.8.0-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for DeepCL-5.8.0-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 30f73b69e9253efc126dffc125e91d4821ec2c5daa67e069b84f4b35b8da6a93
MD5 29e56290e93aac9a90372dfc3df95ce1
BLAKE2b-256 6b8663b4b256b504649e39a3ad2f77ac9e3441e529bec02d7cd7e29ada4ba565

See more details on using hashes here.

File details

Details for the file DeepCL-5.8.0-py2.7-win32.egg.

File metadata

File hashes

Hashes for DeepCL-5.8.0-py2.7-win32.egg
Algorithm Hash digest
SHA256 9d0c05fedda761ab56d4d81db3ebd792777237b13d5aabd10ca329ee1c25f942
MD5 74c445a5192e1c14672af5121ad94d0f
BLAKE2b-256 6abb2b0ef54dafd8ce1259ebf0d1684a757aace759cfc2e9211e6d64c01e08bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page