ONNC-bench is a Python wrapper of ONNC
Project description
ONNC-bench
ONNC-bench is a Python wrapper of ONNC
Installation
Using pip
pip install onnc-bench
Python API Example
Here is an example to show how to use ONNC python API
from onnc.bench import login, Project
# Setup your ONNC API key
api_key = "Your API KEY"
login(api_key)
# Instantiate a projct
project = Project('experiment-1')
# Add a model and its coresponding calibration samples
project.add_model('path/to/model', 'path/to/samples')
# Compile the model and optmize to `CMSIS-NN` backend
project.compile(target='CMSIS-NN-DEFAULT')
# Save the compiled model
deployment = project.save('./output')
print(deployment.report)
{
'sram_size': 2490,
'flash_size': 101970
}
The report shows we need: 2,490 bytes of SRAM 101,970 bytes of ROM to run this model on a CortexM device.
Please Check https://docs-tinyonnc.skymizer.com/index.html for the full documents.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onnc-bench-4.1.6.tar.gz
(33.8 kB
view hashes)
Built Distribution
onnc_bench-4.1.6-py3-none-any.whl
(51.8 kB
view hashes)
Close
Hashes for onnc_bench-4.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78bdd085f8b96270c3789be5940c89809eed0276b6cfa4826073f08569a3763b |
|
MD5 | 3d5a7d4c5b4312c9a29c8b23db844db4 |
|
BLAKE2b-256 | 9b6396d41ee446816bdf17f63112e53598bfa89f7accecf02752e08376d2e957 |