File size: 2,023 Bytes
f972938
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
library_name: anira
tags:
  - anira
  - test-model
---

# anira test models

Dummy networks for testing [anira](https://github.com/anira-project/anira) and
[anira-project/models](https://github.com/anira-project/models), not models anyone runs for their
output. Each checks one thing exactly, with integer-valued or power-of-two arithmetic so every
runtime agrees bit for bit.

| Folder | Networks | Tests |
|---|---|---|
| `simple-gain/` | `audio_out = audio_in * gain` plus the peak; mono, stereo, 4 and 16 channels; a multi-method `.pte` | the plain path, channel counts, static inputs |
| `stateful-accumulator/` | a running sum as an explicit state pair; mono, stereo, and a negated twin | state fed back, switching models with the state kept |
| `typed-gain/` | the gain at int8, int16, float16; unplanned `.pte`; fixtures: the dtype matrix (10 ONNX) and a quantised int8 TFLite | tensor dtypes end to end |
| `variant-gain/` | one Conv1d, three weights (half, double, invert) | switching between models of one form |

Layout: `<folder>/<format>/<file>`, with the formats `onnx/` (ONNX Runtime), `litert/` (LiteRT and
TensorFlow Lite), `libtorch/` (TorchScript), `executorch/` (ExecuTorch; `*_coreml.pte` lowered to
Core ML, `*_vulkan.pte` to Vulkan) and `coreml/` (Core ML ML programs).

## Source

Exported by the scripts in
[anira-project/models](https://github.com/anira-project/models) @ `a2e2521`, `test-models/export/`
(the network scripts, with torch 2.14 and ExecuTorch 1.5), and `tools/export/` for the Core ML and
Vulkan formats (ExecuTorch 1.3.1, coremltools 9.0). Every export is checked against the expected
values or against ONNX Runtime when it is written. The anira descriptions and the catalogs with each
file's SHA256 live with the code in `test-models/<folder>/` there. Pin a revision when you download:

```
https://huggingface.co/anira-project/test-models/resolve/<revision>/simple-gain/onnx/simple_gain_network_mono.onnx
```

## Licence

Apache-2.0: [LICENSE](LICENSE).