Skip to main content

primitiv: A Neural Network Toolkit. (Python frontend)

Project description


  • Dynamic and incremental graph construction
  • On-demand memory allocation
  • Automatic minibatch broadcasting
  • Mostly device-independent
  • Simple usage



  • Python 3 (3.5 or later)
  • NumPy (1.11.0 or later)
  • Cython (0.27 or later)
  • scikit-build (0.6.1 or later, only for building)
  • (optional) CUDA (7.5 or later)
  • (optional) OpenCL (1.2 or later) and OpenCL C++ binding v2

Install dependencies:

pip3 install numpy cython scikit-build

Install primitiv without CUDA and OpenCL:

pip3 install primitiv

Install primitiv with CUDA and/or OpenCL support:

# Enable only CUDA
pip3 install primitiv --global-option --enable-cuda

# Enable both CUDA and OpenCL
pip3 install primitiv --global-option --enable-cuda --global-option --enable-opencl


Project details

Download files

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

Files for primitiv, version
Filename, size File type Python version Upload date Hashes
Filename, size primitiv- (154.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page