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

Uploaded Source

File details

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

File metadata

  • Download URL: nnio-0.3.1.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for nnio-0.3.1.2.tar.gz
Algorithm Hash digest
SHA256 3b35ef8357b650ba45daf524646138ccd850d41aec9ea1c9758eeabbffe43037
MD5 f8835352d2748882797c41197159b02b
BLAKE2b-256 4872189b70f8da1f18798e42e05224514bd78abbe0e7bf34f8c66673f13b8abd

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