Skip to main content

primitiv: A Neural Network Toolkit. (Python frontend)

Project description

Features

  • Dynamic and incremental graph construction

  • On-demand memory allocation

  • Automatic minibatch broadcasting

  • Mostly device-independent

  • Simple usage

Install

Prerequisites:

  • Python 3 (3.5 or later)

  • NumPy (1.11.0 or later)

  • Cython (0.27 or later)

  • CMake (3.1.0 or later)

  • scikit-build (0.6.1 or later)

  • (optional) CUDA (7.5 or later)

  • (optional) OpenCL (1.2 or later) and OpenCL C++ binding v2

Install required packages:

pip3 install numpy cython cmake scikit-build

Build and install primitiv without CUDA and OpenCL:

pip3 install primitiv

Build and 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

--enable-eigen flag that enables Eigen backend is added by default in the package contained in PyPI. To disable the Eigen backend, use --disable-eigen flag. Note that Eigen is bundled with the package contained in PyPI.

Notes

We are providing only a source pacakge for now, and pip command downloads the source package and builds it before installing. This is mainly because of keeping compatibility with the manylinux1 standard described in PEP 513 while maintaining supports of non-standard backends such as CUDA/OpenCL.

Resources

Project details


Download files

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

Source Distribution

primitiv-0.4.0.dev213.tar.gz (1.1 MB view details)

Uploaded Source

File details

Details for the file primitiv-0.4.0.dev213.tar.gz.

File metadata

  • Download URL: primitiv-0.4.0.dev213.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.5

File hashes

Hashes for primitiv-0.4.0.dev213.tar.gz
Algorithm Hash digest
SHA256 0614d142f9debf8204a28d6646a0270d5009725db6eab0e7e8bc2d1694faa348
MD5 cbaa52dc12931ad66c79b3c699079820
BLAKE2b-256 7f0fbbc6cd94602d05320e076525674428c7e64091b7f160d792dca63fd02116

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