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)

  • 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

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

Notes

For now, we provide only a source pacakge, and pip command downloads a source package and builds it before installing. This is useful for users to install this library with CUDA/OpenCL backends while keeping compatibility with the manylinux1 standard described in PEP 513.

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.dev142.tar.gz (178.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for primitiv-0.4.0.dev142.tar.gz
Algorithm Hash digest
SHA256 91b86bb3c882e382508ede90aff9bcd7b8e3a4487bbfef3dfc6395c36413edd1
MD5 6ea13c5d7fdc26ba413a0206dce70c24
BLAKE2b-256 8d33e8d0b5f3e29590ddaca6b3ee51277ce94d40993c98b835501e12ba455f58

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