Skip to main content

Neural network inference on accelerators simplified

Project description

Please refer to the project's documentation.

What is it

nnio is a light-weight python package for easily running neural networks.

It supports running models on CPU as well as some of the edge devices:

For each device there exists an own library and a model format. We wrap all those in a single well-defined python package.

Look at this simple example:

import nnio

# Create model and put it on a Google Coral Edge TPU device
model = nnio.EdgeTPUModel(
    model_path='path/to/model_quant_edgetpu.tflite',
    device='TPU',
)
# Create preprocessor
preproc = nnio.Preprocessing(
    resize=(224, 224),
    batch_dimension=True,
)

# Preprocess your numpy image
image = preproc(image_rgb)

# Make prediction
class_scores = model(image)

nnio was developed for the Fast Sense X microcomputer. It has six neural accelerators, which are all supported by nnio:

More usage examples can be found in the documentation.

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

nnio-0.3.1.tar.gz (14.7 kB view details)

Uploaded Source

File details

Details for the file nnio-0.3.1.tar.gz.

File metadata

  • Download URL: nnio-0.3.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for nnio-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c458ed6abee317472cac96d07c0c9d87c9590b2c42ca1d8df68cb744d7888423
MD5 13dbbc36d62f3d5b11e74e01fd9c2478
BLAKE2b-256 64c58c998062f838ba48d35c2bf94fec6d861d725c7efaf63024663abc784dd7

See more details on using hashes here.

Supported by

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