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.dev231.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

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

primitiv-0.4.0.dev231-cp36-cp36m-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

primitiv-0.4.0.dev231-cp35-cp35m-manylinux2010_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: primitiv-0.4.0.dev231.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for primitiv-0.4.0.dev231.tar.gz
Algorithm Hash digest
SHA256 c241da618fbd26d07f5deae0662b5a51ca298d0d5c37442c9ef4b3fa9b4b4e28
MD5 1db575929e3a0dd6ae5b23eee0f07719
BLAKE2b-256 fb9eed97681aa3c06f19bfa2a33602f195595dd5dfab8ed93f59ee40c560105b

See more details on using hashes here.

File details

Details for the file primitiv-0.4.0.dev231-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: primitiv-0.4.0.dev231-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for primitiv-0.4.0.dev231-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bbf714936fccd69106bae74600c40869f66a62309cbfb396c5418fefe93f92df
MD5 1815e3b3b15caebe30bb7efb410e3878
BLAKE2b-256 c98879eeb762e79f6ee8490536f07ee63759d78ca6e020de4cbd0d4f85d9eb46

See more details on using hashes here.

File details

Details for the file primitiv-0.4.0.dev231-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: primitiv-0.4.0.dev231-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for primitiv-0.4.0.dev231-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 df4c2964124f7bd88c8167a4e3fc85192d0817209b8df4d8d7b02c6497a34b67
MD5 e39cfc8b047a3688e70cfb6a970aef95
BLAKE2b-256 b68105d2a0bb8aafb85014f3dbb73912ba2675dd12fa31a0e5c571301b2aa2b5

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