Pre-release
This release is a pre-release and may not be stable for production use.
XMOS AI Tools
Usage
Using xformer
from xmos_ai_tools import xformer as xf
xf.convert("source model path", "converted model path", params=None)
where params is a dictionary of compiler flags and paramters and their values.
For example:
from xmos_ai_tools import xformer as xf
xf.convert("example_int8_model.tflite", "xcore_optimised_example_int8_model.tflite", {
"mlir-disable-threading": None,
"xcore-reduce-memory": None,
})
To see all available parameters, call
from xmos_ai_tools import xformer as xf
xf.print_help()
This will print all options available to pass to xformer. To see hidden options, run print_help(show_hidden=True)
Using the xcore tflm host interpreter
from xmos_ai_tools import xcore_tflm_host_interpreter as xtflm
ie = xtflm.XTFLMInterpreter(model_content=xformed_model)
ie.set_input_tensor(0, input_tensor)
ie.invoke()
xformer_outputs = []
for i in range(num_of_outputs):
xformer_outputs.append(ie.get_output_tensor(i))
Metadata
Release files for xmos-ai-tools-beta 0.1.5.dev20220320
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_11_0_arm64.whl | Details | |||
| xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_10_9_x86_64.whl | Details | |||
| xmos_ai_tools_beta-0.1.5.dev20220320-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl | Python 3 | none | Linux glibc 2.12+ x86-64 | Details |
Total release size: 58.8 MB
Release files / xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_11_0_arm64.whl
| Download URL | xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 11.4 MB |
|
SHA-256 checksum How to use checksums |
7273dd5036fa0c8b85dc78d00fdec8b1f1811872b7764320b5a87d07e9e2fd86
|
|
BLAKE2b-256 checksum How to use checksums |
4229c861d277593c22939b0baa262c342493deacb9c352bb1f3246565829e5ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_10_9_x86_64.whl
| Download URL | xmos_ai_tools_beta-0.1.5.dev20220320.639da62c-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 11.4 MB |
|
SHA-256 checksum How to use checksums |
d56d5dd81d11117b35665fc55bf37e07041eb9962fceebc577bcde496bec8d09
|
|
BLAKE2b-256 checksum How to use checksums |
941ed90c9bfbac2a59f8e29d5da7fcbc7ee853314cb3d1a3700708d2805e893b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / xmos_ai_tools_beta-0.1.5.dev20220320-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | xmos_ai_tools_beta-0.1.5.dev20220320-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 35.9 MB |
| Tags | Linux glibc 2.12+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
bb337dee748090bf853f0c7684f9bcdc920c5a9813217996443441c8361eb7c1
|
|
BLAKE2b-256 checksum How to use checksums |
5d938d5bf173689c860f7cdd70d7f57d4bc509b8a1e83456adbafc139cb38172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|