aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ffb01821efeb9497cc0306031674ecf77cd728a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!---
SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
SPDX-License-Identifier: Apache-2.0
--->
# 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](https://www.mlplatform.org/tosa).

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.7 (python, python-dev and python-pip)

## Building and installation

```
pip install -U pip setuptools wheel
pip install -U numpy
python setup.py bdist_wheel
pip install dist/tosa_checker-0.1.0-cp38-cp38-linux_x86_64.whl
```

## Docker™ image

A Docker™ image to build the TOSA Checker is also provided. More information can be found on [docker/README.md](docker/README.md).

## Usage

```python
>>> import tosa_checker as tc
>>> checker = tc.TOSAChecker(model_path="model.tflite")
>>> checker.is_tosa_compatible()
True
```

## 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.