xmos-ai-tools 0.2.2.dev196__py3-none-macosx_11_0_arm64.whl → 0.2.2.dev211__py3-none-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: xmos-ai-tools
3
+ Version: 0.2.2.dev211
4
+ Summary: XMOS AI Tools
5
+ Home-page: https://github.com/xmos/ai_tools
6
+ Author: XMOS
7
+ Author-email: support@xmos.com
8
+ License: LICENSE.txt
9
+ Keywords: tensorflow binarized neural networks
10
+ Platform: UNKNOWN
11
+ Classifier: License :: Other/Proprietary License
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.7
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Topic :: Software Development :: Libraries
26
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
+ Requires-Python: >=3.7
28
+ Description-Content-Type: text/markdown
29
+ Requires-Dist: numpy (<2.0)
30
+ Requires-Dist: tflite (>=2.4.0)
31
+
32
+ Documentation
33
+ -------------
34
+
35
+ - [How to use the graph transformer to run a sample model app on XCORE.AI](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/flow.rst)
36
+ - [Usage from Python to run a sample model on host](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/python.rst)
37
+ - [Graph transformer command-line options](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/options.rst)
38
+ - [Transforming Pytorch models](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/pytorch.rst)
39
+ - [FAQ](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/faq.rst)
40
+ - [Changelog](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/changelog.rst)
41
+ - Advanced topics
42
+ - [Detailed background to deploying on the edge using XCORE.AI](https://github.com/xmos/ai_tools/blob/02cdcf6/docs/rst/xcore-ai-coding.rst)
43
+ - [Building the graph transformer and xmos-ai-tools package]()
44
+
45
+
46
+
@@ -10,10 +10,10 @@ xmos_ai_tools/xinterpreters/device/device_interpreter.py,sha256=jIOyqbKMhHPIyZff
10
10
  xmos_ai_tools/xinterpreters/host/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  xmos_ai_tools/xinterpreters/host/exceptions.py,sha256=HOjADxHYMPI9mN0YIbWxtw9hSeL2B6XWWwqtGtyJdVs,577
12
12
  xmos_ai_tools/xinterpreters/host/host_interpreter.py,sha256=UcJp0_3DnhbDhGQy8Uv6d4r_UFfARwCI_jvLlJzDlEE,8933
13
- xmos_ai_tools/xinterpreters/host/libs/macos/xtflm_python.1.0.1.dylib,sha256=SygX4g10fyTz-Bdh3qUmHbzCWxzqN4U2KPaVqCuK2QI,1254165
14
- xmos_ai_tools/xinterpreters/host/libs/macos/xtflm_python.dylib,sha256=SygX4g10fyTz-Bdh3qUmHbzCWxzqN4U2KPaVqCuK2QI,1254165
15
- xmos_ai_tools-0.2.2.dev196.data/data/bin/xcore-opt,sha256=1sNzVW977_r39LG2r15FWlzaS3QoEWxk3Tfg6x7gEOw,119050710
16
- xmos_ai_tools-0.2.2.dev196.dist-info/METADATA,sha256=W1TfQuYUSRd3Wmi6gtySf_Ch7zYoaKHUwuqLqTF7D8E,2857
17
- xmos_ai_tools-0.2.2.dev196.dist-info/WHEEL,sha256=PRMNVvWUA84tUNQKFqzGQ0YKphoypcBFAeCy1KrzKHo,107
18
- xmos_ai_tools-0.2.2.dev196.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
19
- xmos_ai_tools-0.2.2.dev196.dist-info/RECORD,,
13
+ xmos_ai_tools/xinterpreters/host/libs/macos/xtflm_python.1.0.1.dylib,sha256=zFdbltTUUwjaT65t8cJxLXrp_ApyNIHFGlJh42CX4ko,1255621
14
+ xmos_ai_tools/xinterpreters/host/libs/macos/xtflm_python.dylib,sha256=zFdbltTUUwjaT65t8cJxLXrp_ApyNIHFGlJh42CX4ko,1255621
15
+ xmos_ai_tools-0.2.2.dev211.data/data/bin/xcore-opt,sha256=-7zAC1kiwvC66fh4tgPSoGCjkd3eRyN8VS-CtTw4OI0,119179814
16
+ xmos_ai_tools-0.2.2.dev211.dist-info/METADATA,sha256=hllhgW_g0Kw3NfAt1DoVsmV0LtBV3R2fJ4UJHP4nSXo,2093
17
+ xmos_ai_tools-0.2.2.dev211.dist-info/WHEEL,sha256=PRMNVvWUA84tUNQKFqzGQ0YKphoypcBFAeCy1KrzKHo,107
18
+ xmos_ai_tools-0.2.2.dev211.dist-info/top_level.txt,sha256=YWegea73ll3tMlRWRdHJemUy2VOuEYDdOIaffxu_eF0,14
19
+ xmos_ai_tools-0.2.2.dev211.dist-info/RECORD,,
@@ -1,95 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xmos-ai-tools
3
- Version: 0.2.2.dev196
4
- Summary: XMOS AI Tools
5
- Home-page: https://github.com/xmos/ai_tools
6
- Author: XMOS
7
- Author-email: support@xmos.com
8
- License: LICENSE.txt
9
- Keywords: tensorflow binarized neural networks
10
- Platform: UNKNOWN
11
- Classifier: License :: Other/Proprietary License
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Intended Audience :: Education
15
- Classifier: Intended Audience :: Science/Research
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
- Classifier: Topic :: Scientific/Engineering
22
- Classifier: Topic :: Scientific/Engineering :: Mathematics
23
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
- Classifier: Topic :: Software Development
25
- Classifier: Topic :: Software Development :: Libraries
26
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
27
- Requires-Python: >=3.7
28
- Description-Content-Type: text/markdown
29
- Requires-Dist: numpy (<2.0)
30
- Requires-Dist: tflite (>=2.4.0)
31
-
32
- # XMOS AI Tools
33
-
34
- ## Usage
35
-
36
- ### xformer
37
- ```python
38
- from xmos_ai_tools import xformer as xf
39
-
40
- xf.convert("source model path", "converted model path", params=None)
41
- ```
42
- where `params` is a dictionary of compiler flags and paramters and their values.
43
-
44
- For example:
45
- ```python
46
- from xmos_ai_tools import xformer as xf
47
-
48
- xf.convert("example_int8_model.tflite", "xcore_optimised_int8_model.tflite", {
49
- "mlir-disable-threading": None,
50
- "xcore-reduce-memory": None,
51
- })
52
- ```
53
-
54
- To see all available parameters, call
55
- ```python
56
- from xmos_ai_tools import xformer as xf
57
-
58
- xf.print_help()
59
- ```
60
- This will print all options available to pass to xformer. To see hidden options, run `print_help(show_hidden=True)`
61
-
62
- To create a parameters file and a tflite model suitable for loading to flash, use the "xcore-flash-image-file" option.
63
- ```python
64
- xf.convert("example_int8_model.tflite", "xcore_optimised_int8_flash_model.tflite", {
65
- "xcore-flash-image-file ": "./xcore_params.params",
66
- })
67
- ```
68
-
69
- To use combine these files created by the code above into a .out file use the generate_flash() function
70
- ```python
71
- xf.generate_flash(
72
- output_file="xcore_flash_binary.out",
73
- model_files=["model.tflite", "model2.tflite"],
74
- param_files=["1.params", "2.params"]
75
- )
76
- ```
77
-
78
- ### xinterpreters
79
-
80
- Host Interpreter
81
-
82
- ```python
83
- from xmos_ai_tools.xinterpreters import xcore_tflm_host_interpreter
84
-
85
- ie = xcore_tflm_host_interpreter()
86
- ie.set_model(model_path=xcore_model)
87
- ie.set_tensor(ie.get_input_details()[0]['index'], value=input)
88
- ie.invoke()
89
-
90
- xformer_outputs = []
91
- for i in range(num_of_outputs):
92
- xformer_outputs.append(ie.get_tensor(ie.get_output_details()[i]['index']))
93
- ```
94
-
95
-