Tool to check if a ML model is compatible with the TOSA specification
Project description
TOSA Checker
Overview
The TOSA Checker is a tool that provides an easy way to ensure that a TensorFlow™ Lite model is compatible with the TOSA specification.
The project is currently in alpha, some stability issues may still be found.
Prerequisites
To build the TOSA Checker the following are required:
- Ubuntu® 20.04.03 LTS (the TOSA Checker has been tested on this OS, but should work on other Linux® OS)
- Bazel™ (Bazelisk is an easy way to install the correct version of Bazel™)
- Git™
- Python® >=3.8 (python, python-dev and python-pip)
Building and installation
pip install -U pip setuptools wheel
pip install -U numpy GitPython
python setup.py bdist_wheel
pip install dist/<tosa_checker>.whl
Docker™ image
A Docker™ image to build the TOSA Checker is also provided. More information can be found on docker/README.md.
Usage
>>> import tosa_checker as tc
>>> checker = tc.TOSAChecker(model_path="model.tflite")
>>> checker.is_tosa_compatible()
True
Security
To report any security issue in the TOSA Checker, please see SECURITY.md.
License
TOSA Checker is licensed under [Apache License 2.0].
Trademarks and Copyrights
- Bazel™ is a trademark of Google® LLC.
- Git™ is a trademark of Software Freedom Conservancy.
- Linux® is the registered trademark of Linus Torvalds in the U.S. and elsewhere.
- Python® is a registered trademark of the PSF.
- Ubuntu® is a registered trademark of Canonical.
- Tensorflow™ is a trademark of Google® LLC.
- Docker™ is a trademark of Docker, Inc.
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 Distributions
Built Distributions
File details
Details for the file tosa_checker-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tosa_checker-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 16.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777cbbf7e47bbce5712339f6ffbb2d3d64ae1442f8af0d43a3ebd6b3525d1dfe |
|
MD5 | 15e80c4a3d9cd400080f539a42b832c5 |
|
BLAKE2b-256 | 3278e2e91168615914636cae5b25d5995b82a670f1a4134c88439e0cd07fe112 |
File details
Details for the file tosa_checker-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tosa_checker-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 16.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dbc3eef0b3299a8000b905e8170ee0f5091587140deab924d2f1aa2ec28f787 |
|
MD5 | c0e92c2ec1c43d396d95d8efbc9b6309 |
|
BLAKE2b-256 | af555dd7a9c0e17491300ccfc83bed4935b04643553fb7addbbc72b8e9b29d7e |
File details
Details for the file tosa_checker-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tosa_checker-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 16.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4d82263392e1587f6ee6106b30dde14486ad056c455dd55200bbb2356d1439 |
|
MD5 | 439d49b7898200fe08de73558d0b5181 |
|
BLAKE2b-256 | 7f49e83586d96a17d1cb01d6f091bd26d69c0d65863ebc7b1ae16bc8d97c4ced |
File details
Details for the file tosa_checker-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tosa_checker-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 16.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 906592c25a51c9d5f45d232ab99b44e1327ca121754dc053e62cd5a59a08139d |
|
MD5 | a07ae0d91cee9337ec7bcb32d1ac57be |
|
BLAKE2b-256 | 2ec40a2825f88e1666c881ca5f00e320c18503fd8b91810734fee001b6affd3a |