ONNC-bench is a Python wrapper of ONNC
Project description
ONNC-bench
ONNC-bench is a Python wrapper of ONNC
Installation
Developer install
python3 -m pip install -e .
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')
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.3.0.tar.gz
(34.0 kB
view hashes)
Built Distribution
onnc_bench-4.3.0-py3-none-any.whl
(43.7 kB
view hashes)
Close
Hashes for onnc_bench-4.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c1ff48640f46986a46f9f57baaa1022bfd8b94582a29dcda7e46bad56f81168 |
|
MD5 | 2519e9a82b206ca3d18815dbbd6a63a1 |
|
BLAKE2b-256 | 778535f26d93bc9a532a50e2013ad8484eac9a12dcfd6ea79899a2f0943b4d60 |